Cleanup and build the last packages for Fedora 37

This commit is contained in:
2022-11-25 11:36:16 +01:00
parent 9754e4d04a
commit cee9ca5ba4
44 changed files with 1284 additions and 1878 deletions

View File

@@ -0,0 +1,77 @@
%global git_short_version_hash 4b3baca9
%global git_full_version_hash 4b3baca999a4a229433c891cf69c2c4e2d634b89
Summary: A command line interface to Phabricator
Name: arcanist
Version: 0.git%{git_short_version_hash}
Release: 1%{?dist}
License: ASL 2.0
URL: https://secure.phabricator.com/book/phabricator/article/arcanist/
Source0: https://github.com/phacility/arcanist/archive/%{git_full_version_hash}.tar.gz#/arcanist-%{git_full_version_hash}.tar.gz
Patch1: 0001-Set-the-default-pylint-command-to-pylint-3.patch
BuildArch: noarch
BuildRequires: bash-completion
BuildRequires: php(language) >= 5
BuildRequires: php-cli
Requires: bash-completion
Requires: php(language) >= 5
Requires: php-cli
%description
A command line interface to Phabricator
%prep
%setup -q -n arcanist-%{git_full_version_hash}
# Not used by anyone other than upstream developers?
rm -rf scripts/breakout.py
%patch1 -p1
%build
%install
# copy arcanist to the buildroot
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a bin resources scripts src support externals %{buildroot}%{_datadir}/%{name}/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
cp -a support/shell/hooks/bash-completion.sh %{buildroot}%{_datadir}/bash-completion/completions/arc
# symlink the bin
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -s %{_datadir}/%{name}/bin/arc
popd
find %{buildroot}%{_datadir}/%{name}/ -type d -name test -exec rm -rvf {} \; 2>/dev/null || :
find %{buildroot}%{_datadir}/%{name}/ -type d -name __tests__ -exec rm -rvf {} \; 2>/dev/null || :
# Fix shebangs
find %{buildroot}%{_datadir}/%{name}/ -type f -exec sed -i -r -e 's"^#!(.*)/usr/bin/env php"#!%{_bindir}/php"' {} \;
find %{buildroot}%{_datadir}/%{name}/ -type f -exec sed -i -r -e 's"^#!(.*)/usr/bin/env bash"#!%{_bindir}/bash"' {} \;
%files
%{!?_licensedir:%global license %doc}
%license LICENSE
%doc README.md
%doc NOTICE
%{_datadir}/bash-completion/completions/arc
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/bin
%{_datadir}/%{name}/resources
%{_datadir}/%{name}/scripts
%{_datadir}/%{name}/src
%{_datadir}/%{name}/support
%{_datadir}/%{name}/externals
%{_bindir}/arc
%changelog
* Sun Dec 20 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First build on Fedora 33.

View File

@@ -0,0 +1,231 @@
Summary: Digital VCR and streaming server
Name: ffmpeg-nvidia
Version: 4.2.2
Release: 3%{?dist}
License: GPLv2+
URL: http://ffmpeg.org/
Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%define ffname ffmpeg
%define debug_package %{nil}
%define _with_libnpp 1
%if 0%{?_with_libnpp}
BuildRequires: cuda
BuildRequires: cuda-devel
%endif
BuildRequires: fdk-aac-devel
BuildRequires: gsm-devel
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libaom-devel
BuildRequires: libdav1d-devel
BuildRequires: librsvg2-devel
BuildRequires: libtheora-devel
BuildRequires: libv4l-devel
BuildRequires: libvmaf-devel
BuildRequires: libvpx-devel
BuildRequires: ocl-icd-devel
BuildRequires: openal-soft-devel
BuildRequires: opencl-headers
BuildRequires: opencore-amr-devel
BuildRequires: opus-devel
BuildRequires: soxr-devel
BuildRequires: speex-devel
BuildRequires: vo-amrwbenc-devel
BuildRequires: zimg-devel
BuildRequires: zvbi-devel
BuildRequires: intel-mediasdk-devel
BuildRequires: alsa-lib-devel
BuildRequires: bzip2-devel
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel
BuildRequires: fribidi-devel
BuildRequires: gnutls-devel
BuildRequires: gsm-devel
BuildRequires: lame-devel
BuildRequires: libavc1394-devel
BuildRequires: libdc1394-devel
BuildRequires: libiec61883-devel
BuildRequires: libdrm-devel
BuildRequires: libgcrypt-devel
BuildRequires: libGL-devel
BuildRequires: libmodplug-devel
BuildRequires: librsvg2-devel
BuildRequires: libssh-devel
BuildRequires: libtheora-devel
BuildRequires: libv4l-devel
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
BuildRequires: nasm
BuildRequires: libxcb-devel
BuildRequires: opencl-headers ocl-icd-devel
BuildRequires: openjpeg2-devel
BuildRequires: perl(Pod::Man)
BuildRequires: soxr-devel
BuildRequires: speex-devel
BuildRequires: texinfo
BuildRequires: zimg-devel >= 2.7.0
BuildRequires: zlib-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Provides: %{ffname}
%description
%{ffname} is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
%package libs
Summary: Libraries for %{name}
Provides: %{ffname}-libs
Provides: %{ffname}-libs(%{arch}) = %{version}-%{release}%{?dist}
%description libs
%{ffname} is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
This package contains the libraries for %{name}
%package -n libavdevice
Summary: Special devices muxing/demuxing library
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description -n libavdevice%{?flavor}
Libavdevice is a complementary library to libavf "libavformat". It provides
various "special" platform-specific muxers and demuxers, e.g. for grabbing
devices, audio capture and playback etc.
%package devel
Summary: Development package for %{name}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
Requires: libavdevice%{?flavor}%{_isa} = %{version}-%{release}
Requires: pkgconfig
Provides: %{ffname}-devel
%description devel
%{ffname} is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
This package contains development files for %{ffname}
%prep
%setup -q -n %{ffname}-%{version}
%build
# Don't use the %%configure macro as this is not an autotool script
./configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--datadir=%{_datadir}/%{ffname} \
--docdir=%{_docdir}/%{ffname} \
--incdir=%{_includedir}/%{ffname} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--arch=x86_64 \
--enable-cuda \
--enable-cuda-sdk \
--enable-cuvid \
--enable-nvenc \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree \
--enable-gpl \
--enable-libfdk_aac \
--extra-cflags=-I/usr/local/cuda-%{cudav}/include \
--extra-ldflags=-L/usr/local/cuda-%{cudav}/lib64 \
--disable-manpages \
--enable-libbluray \
--enable-libdrm \
--enable-libmp3lame \
--enable-openal \
--enable-opencl \
--enable-opengl \
--enable-libopenjpeg \
--enable-libopus \
--enable-libpulse \
--enable-librsvg \
--enable-libsoxr \
--enable-libspeex \
--enable-libssh \
--enable-libtheora \
--enable-libvorbis \
--enable-libv4l2 \
--enable-libvmaf \
--enable-libvpx \
--enable-libzimg \
--enable-libzvbi \
--enable-shared \
--enable-postproc \
--enable-libvo-amrwbenc \
--enable-bzlib \
--disable-crystalhd \
--enable-fontconfig \
--enable-gcrypt \
--enable-gnutls \
--enable-ladspa \
--enable-libaom \
--enable-libdav1d \
--enable-libass \
--enable-libfdk-aac \
--enable-libjack \
--enable-libfreetype \
--enable-libfribidi \
--enable-libgsm \
%if 0%{?_with_libnpp}
--enable-libnpp \
%endif
--enable-version3
# interesting:
# https://patchwork.ffmpeg.org/project/ffmpeg/patch/0jvAo3VLhFQ4_4u5oIjRgKWsvUsMNzbFI7uRxyeg3q5DRtwQTeyeAKjnI6vW56j-ckb7etJOBCdiWpXRwMivvzlb9rvRTrZ9UY4ORW1vWww=@protonmail.com/#16559
%install
make install DESTDIR=%{?buildroot}
rm -f %{ffname}-%{version}/debugsourcefiles.list
rm -rf %{buildroot}/.build-id
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%{_bindir}/%{ffname}
%{_bindir}/ffplay
%{_bindir}/ffprobe
%{_datadir}/%{ffname}
%files libs
%doc CREDITS README.md
%license COPYING.*
%{_libdir}/lib*.so.*
%exclude %{_libdir}/libavdevice.so.*
%files -n libavdevice
%{_libdir}/libavdevice.so.*
%files devel
%doc MAINTAINERS doc/APIchanges doc/*.txt
%doc %{_docdir}/%{ffname}/*.html
%{_includedir}/%{ffname}
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%changelog
* Mon Mar 9 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- More modules added.
* Sun Mar 8 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build.
- Build with Nvidia Cuda support.

View File

@@ -0,0 +1,216 @@
%define bashcompletiondir %{_sysconfdir}/bash_completion.d
%define realname gdal
%define sysprefix /usr
# Prefix is /usr/local!
%define _prefix /usr/local
%define _includedir %{_prefix}/include
%define _datadir %{_prefix}/share
%define _bindir %{_prefix}/bin
%define _libdir %{_prefix}/lib
%define _mandir %{_prefix}/man
Name: gdal3
Version: 3.0.2
Release: 2%{?dist}
#define debug_package #{nil}
License: MIT
Group: Applications/System
Summary: GIS file format library
URL: http://www.gdal.org
Source0: %realname-%{version}.tar.gz
BuildRequires: freexl-devel
BuildRequires: bash-completion
BuildRequires: libzstd-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: pcre-devel
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: openjpeg2-devel
BuildRequires: openjpeg-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: %{sysprefix}/bin/pkg-config
BuildRequires: libpq-devel
BuildRequires: proj6-devel >= 6.0.2
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-numpy
%endif
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-numpy
%endif
BuildRequires: sqlite-devel
BuildRequires: swig
BuildRequires: /usr/bin/pathfix.py
%global DONT_REMOVE_RPATH 1
# don't check for rpath:
%global __arch_install_post /usr/lib/rpm/check-buildroot
%description
Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform
C++ translator library for raster and vector geospatial data formats.
As a library, it presents a single abstract data model to the calling
application for all supported formats. It also comes with a variety of
useful commandline utilities for data translation and processing.
It provides the primary data access engine for many applications.
GDAL/OGR is the most widely used geospatial data access library.
%package devel
Summary: Development files for the GDAL file format library
Requires: %{name}-libs = %{version}-%{release}
%description devel
This package contains development files for GDAL.
%package libs
Summary: GDAL file format library
%description libs
This package contains the GDAL file format library.
%package python-tools
Summary: GDAL python files
%description python-tools
This package contains the GDAL python files
%prep
%setup -q -n %{realname}-%{version}
%if 0%{?fedora} > 31
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" \
%else
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" \
%endif
swig/python/scripts/epsg_tr.py \
swig/python/scripts/gdal2tiles.py \
swig/python/scripts/gdalchksum.py \
swig/python/scripts/gdalident.py \
swig/python/scripts/gdal_pansharpen.py \
swig/python/scripts/gdal_sieve.py \
swig/python/scripts/rgb2pct.py \
swig/python/scripts/esri2wkt.py \
swig/python/scripts/gdal2xyz.py \
swig/python/scripts/gdalcompare.py \
swig/python/scripts/gdalimport.py \
swig/python/scripts/gdal_polygonize.py \
swig/python/scripts/mkgraticule.py \
swig/python/scripts/gcps2vec.py \
swig/python/scripts/gdal_auth.py \
swig/python/scripts/gdal_edit.py \
swig/python/scripts/gdal_merge.py \
swig/python/scripts/gdal_proximity.py \
swig/python/scripts/ogrmerge.py \
swig/python/scripts/gcps2wld.py \
swig/python/scripts/gdal_calc.py \
swig/python/scripts/gdal_fillnodata.py \
swig/python/scripts/gdalmove.py \
swig/python/scripts/gdal_retile.py \
swig/python/scripts/pct2rgb.py
%build
./configure --with-python
#./configure \
#--datadir=%{_datadir}/%{realname} \
#--includedir=%{_includedir}/%{realname} \
#--prefix=%{_prefix} \
#--libdir=%{_libdir} \
#--sysconfdir=%{_sysconfdir} \
#--localstatedir=%{_var} \
#--with-curl \
#--with-freexl \
#--with-geos \
#--with-png=%{sysprefix} \
#--with-gif \
#--with-gta \
#--with-jpeg \
#--without-jpeg12 \
#--with-liblzma \
#--with-libtiff=%{sysprefix} \
#--with-libz \
#--without-mdb \
#--without-msg \
#--with-proj=%{_prefix} \
#--with-python \
#--with-threads \
#--enable-shared
make
%install
export DONT_REMOVE_RPATH=1
make install DESTDIR=%{buildroot}
# move bashcompletion file to proper directory:
mv %{buildroot}%{_prefix}/etc %{buildroot}/
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%defattr(-,root,root,-)
%doc MIGRATION_GUIDE.TXT PROVENANCE.TXT
%config %{bashcompletiondir}/*
%{_bindir}/gdallocationinfo
%{_bindir}/gdal_contour
%{_bindir}/gdal_rasterize
%{_bindir}/gdal_translate
%{_bindir}/gdaladdo
%{_bindir}/gdalinfo
%{_bindir}/gdaldem
%{_bindir}/gdalbuildvrt
%{_bindir}/gdaltindex
%{_bindir}/gdalwarp
%{_bindir}/gdal_grid
%{_bindir}/gdalenhance
%{_bindir}/gdalmanage
%{_bindir}/gdalserver
%{_bindir}/gdalsrsinfo
%{_bindir}/gdaltransform
%{_bindir}/nearblack
%{_bindir}/ogr*
%{_bindir}/testepsg
%{_bindir}/gnmanalyse
%{_bindir}/gnmmanage
%files libs
%doc LICENSE.TXT NEWS PROVENANCE.TXT COMMITTERS
%{_libdir}/libgdal.so.26
%{_libdir}/libgdal.so.26.*
%{_datadir}/%{realname}/*
#TODO: Possibly remove files like .dxf, .dgn, ...
%dir %{_libdir}/%{realname}plugins
%files devel
%{_bindir}/%{realname}-config
%{_includedir}/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{realname}.pc
%files python-tools
%{_bindir}/*.py
%{_libdir}64/python*/site-packages/*
%changelog
* Sat Jan 11 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Python scripts added
* Wed Jan 8 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Library path fixed.
* Mon Jan 6 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build

View File

@@ -0,0 +1,110 @@
%bcond_without lto
%bcond_without openssl
%if %{with lto}
%global optflags %{optflags} -flto
%global build_ldflags %{build_ldflags} -flto
%endif
Name: goaccess
Version: 1.6
Release: 99%{?dist}
Summary: Real-time web log analyzer and interactive viewer
License: GPLv2+
URL: https://goaccess.io/
Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: GeoIP-devel
BuildRequires: ncurses-devel
BuildRequires: gettext-devel
%if %{with openssl}
BuildRequires: openssl-devel
%endif
BuildRequires: make
%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
%autosetup
# 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 --enable-tcb=btree --with-getline
%configure \
--enable-debug \
--enable-geoip=mmdb \
--enable-utf8 \
--with-getline \
%{?with_openssl: --with-openssl}
%make_build
%install
%make_install
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/browsers.list
%config(noreplace) %{_sysconfdir}/%{name}/podcast.list
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Fri Jun 24 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.6.
* Fri Feb 18 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.5.5.
* Mon Dec 27 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.5.4.
* Fri Sep 10 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.5.1.
* Thu Jun 3 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- New build for Fedora 34 (1.5)

View File

@@ -0,0 +1,143 @@
%define haproxy_user haproxy
%define haproxy_group %{haproxy_user}
%define haproxy_home %{_localstatedir}/lib/haproxy
%define haproxy_confdir %{_sysconfdir}/haproxy
%define haproxy_datadir %{_datadir}/haproxy
%global _hardened_build 1
Name: haproxy
Version: 1.9.7
Release: 1%{?dist}
Summary: HAProxy reverse proxy for high availability environments
Group: System Environment/Daemons
License: GPLv2+
URL: http://www.haproxy.org/
Source0: http://www.haproxy.org/download/1.8/src/haproxy-%{version}.tar.gz
Source1: %{name}.service
Source2: %{name}.cfg
Source3: %{name}.logrotate
Source4: %{name}.sysconfig
Source5: halog.1
BuildRequires: lua-devel
BuildRequires: pcre-devel
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: systemd-devel
BuildRequires: systemd-units
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%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="linux2628" USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 USE_LUA=1 USE_CRYPT_H=1 USE_SYSTEMD=1 USE_LINUX_TPROXY=1 ${regparm_opts} ADDINC="%{optflags}" ADDLIB="%{__global_ldflags}"
pushd contrib/halog
%{__make} ${halog} OPTIMIZE="%{optflags} %{build_ldflags}"
popd
pushd contrib/iprange
%{__make} iprange OPTIMIZE="%{optflags} %{build_ldflags}"
popd
%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_home}
%{__install} -d -m 0755 %{buildroot}%{haproxy_datadir}
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -p -m 0755 ./contrib/halog/halog %{buildroot}%{_bindir}/halog
%{__install} -p -m 0755 ./contrib/iprange/iprange %{buildroot}%{_bindir}/iprange
%{__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_home} \
-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
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc doc/* examples/*
%doc CHANGELOG README ROADMAP VERSION
%license LICENSE
%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}/iprange
%{_mandir}/man1/*
%attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home}
%changelog
* Sat May 4 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
- Update to mainline version 1.9.7.
- First build on Fedora 30.

View File

@@ -0,0 +1,48 @@
%global betaversion beta5
Name: htop
Version: 3.0.5
Release: 1%{?dist}
Summary: System Top
Group: System
License: GPL
URL: https://hisham.hm/htop/
SOURCE0: %name-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: lm_sensors-devel
%description
This is htop, an interactive process viewer. It requires ncurses. It is developed primarily on Linux, but we also have code for running under FreeBSD and Mac OS X (help and testing are wanted for these platforms!)
This software has evolved considerably over the years, and is reasonably complete, but there is always room for improvement.
%prep
%setup -q -n %name-%{version}
%build
./autogen.sh
./configure --prefix=%{_prefix}
make
%install
make install DESTDIR=%{buildroot}
%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS TESTPLAN
%{_bindir}/htop
%{_datarootdir}/applications/htop.desktop
%{_datarootdir}/icons/hicolor/scalable/apps/htop.svg
%{_mandir}/man1/htop.1.gz
%{_datarootdir}/pixmaps/htop.png
%changelog
* Sun Mar 7 2021 Daniel Steiner <daniel.steiner@greenmail.ch> - 3.0.5
- Update to 3.0.5 version.

File diff suppressed because it is too large Load Diff

View File

@@ -1,55 +1,90 @@
# Icinga Web 2 | (c) 2013-2016 Icinga Development Team | GPLv2+
# Icinga Web 2 | (c) 2013-2017 Icinga Development Team | GPLv2+
%define revision 1
Name: icingaweb2
Version: 2.4.1
Version: 2.8.2
Release: %{revision}%{?dist}
Summary: Icinga Web 2
Group: Applications/System
License: GPLv2+ and MIT and BSD
URL: https://icinga.com
Source: icingaweb2.tar.gz
Source0: icingaweb2-2.8.2.orig.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Packager: Icinga Team <info@icinga.com>
%if 0%{?fedora} || 0%{?rhel} || 0%{?amzn}
%define php php
%define php_cli php-cli
%if 0%{?rhel} == 7
%define php_scl rh-php73
%endif
%if 0%{?rhel} == 6
%define php_scl rh-php70
%endif
%if 0%{?el5}%{?el6}%{?amzn}
%define use_selinux 0
%else
%define use_selinux 1
%endif
%if 0%{?php_scl:1}
%define php_scl_prefix %{php_scl}-
%define php_runtime %{php_scl_prefix}php-fpm
%define php_bin /opt/rh/%{php_scl}/root/usr/bin/php
%define php_fpm 1
%else
%define php_runtime %{php}
%endif
%define php %{?php_scl_prefix}php
%define php_cli %{php}-cli
%define php_common %{php}-common
%define wwwconfigdir %{_sysconfdir}/httpd/conf.d
%define wwwuser apache
# extra requirements on RHEL
Requires: %{php}-mysqlnd
Requires: %{php}-pgsql
Requires: %{php}-ldap
%endif
# minimum required PHP version
%define php_version 5.6.0
%if 0%{?suse_version}
%define wwwconfigdir %{_sysconfdir}/apache2/conf.d
%define wwwuser wwwrun
%if 0%{?suse_version} == 1110
%define php php53
Requires: apache2-mod_php53
%else
%define php php5
Requires: apache2-mod_php5
%endif
%define php php
%define php_runtime mod_php_any
%define php_common %{php}
%define php_cli %{php}
# conflict with older PHP on SLES and openSUSE
Conflicts: php < %{php_version}
Conflicts: php5 < %{php_version}
Conflicts: php53
%endif
%{?amzn:Requires(pre): shadow-utils}
%{?fedora:Requires(pre): shadow-utils}
%{?rhel:Requires(pre): shadow-utils}
%{?suse_version:Requires(pre): pwdutils}
Requires: %{php_runtime} >= %{php_version}
Requires: %{php_common} >= %{php_version}
%if 0%{?suse_version}
Requires: apache2
%endif
Requires: icinga-l10n
Requires: icingacli = %{version}-%{release}
Requires: %{name}-common = %{version}-%{release}
Requires: php-Icinga = %{version}-%{release}
Requires: %{name}-vendor-dompdf = 0.7.0-1%{?dist}
Requires: %{name}-vendor-HTMLPurifier = 4.8.0-1%{?dist}
Requires: %{name}-vendor-JShrink = 1.1.0-1%{?dist}
Requires: %{name}-vendor-lessphp = 0.4.0-1%{?dist}
Requires: %{name}-vendor-Parsedown = 1.6.0-1%{?dist}
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
%define selinux 1
%define selinux_variants mls targeted
#%{!?_selinux_policy_version: %define _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
%endif
Requires: %{name}-vendor-dompdf = %{version}-%{release}
Requires: %{name}-vendor-HTMLPurifier = 1:%{version}-%{release}
Requires: %{name}-vendor-JShrink = %{version}-%{release}
Requires: %{name}-vendor-lessphp = %{version}-%{release}
Requires: %{name}-vendor-Parsedown = %{version}-%{release}
%define basedir %{_datadir}/%{name}
%define bindir %{_bindir}
@@ -71,6 +106,9 @@ Group: Applications/System
%{?fedora:Requires(pre): shadow-utils}
%{?rhel:Requires(pre): shadow-utils}
%{?suse_version:Requires(pre): pwdutils}
%if 0%{?suse_version} > 1320
Requires(pre): system-user-wwwrun
%endif
%description common
Common files for Icinga Web 2 and the Icinga CLI
@@ -79,12 +117,15 @@ Common files for Icinga Web 2 and the Icinga CLI
%package -n php-Icinga
Summary: Icinga Web 2 PHP library
Group: Development/Libraries
Requires: %{php} >= 5.3.0
Requires: %{php}-gd %{php}-intl
Requires: %{name}-vendor-zf1 = 1.12.20-1%{?dist}
Requires: %{php_common} >= %{php_version}
Requires: %{php}-gd %{php}-intl %{php}-mbstring
%{?rhel:Requires: %{php}-pdo %{php}-xml}
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
Requires: %{php}-json
%endif rhel >= 8 || fedora >= 30
Requires: %{name}-vendor-zf1 = %{version}-%{release}
%{?amzn:Requires: %{php}-pecl-imagick}
%{?fedora:Requires: php-pecl-imagick}
%{?rhel:Requires: php-pecl-imagick}
%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl %{php}-posix}
%description -n php-Icinga
@@ -94,25 +135,29 @@ Icinga Web 2 PHP library
%package -n icingacli
Summary: Icinga CLI
Group: Applications/System
Requires: icinga-l10n
Requires: %{name}-common = %{version}-%{release}
Requires: php-Icinga = %{version}-%{release}
%{?amzn:Requires: %{php_cli} >= 5.3.0 bash-completion}
%{?fedora:Requires: %{php_cli} >= 5.3.0 bash-completion}
%{?rhel:Requires: %{php_cli} >= 5.3.0 bash-completion}
%{?suse_version:Requires: %{php} >= 5.3.0}
Requires: bash-completion
Requires: %{php_cli} >= %{php_version}
%if 0%{?suse_version}
# conflict with older PHP on SLES and openSUSE
Conflicts: php < %{php_version}
Conflicts: php5 < %{php_version}
Conflicts: php53
%endif
%description -n icingacli
Icinga CLI
%if 0%{?selinux}
%if 0%{?use_selinux}
%define selinux_variants mls targeted
%package selinux
Summary: SELinux policy for Icinga Web 2
#BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
BuildRequires: checkpolicy, selinux-policy-devel, hardlink
%if "%{_selinux_policy_version}" != ""
Requires: selinux-policy >= %{_selinux_policy_version}
%endif
Requires: %{name} = %{version}-%{release}
Requires(post): policycoreutils
Requires(postun): policycoreutils
@@ -123,87 +168,82 @@ SELinux policy for Icinga Web 2
%package vendor-dompdf
Version: 0.7.0
Release: 1%{?dist}
Summary: Icinga Web 2 vendor library dompdf
Group: Development/Libraries
License: LGPLv2.1
Requires: %{php} >= 5.3.0
Requires: %{php_common} >= %{php_version}
Requires: %{name}-common = %{version}-%{release}
%description vendor-dompdf
Icinga Web 2 vendor library dompdf
%package vendor-HTMLPurifier
Version: 4.8.0
Release: 1%{?dist}
Epoch: 1
Summary: Icinga Web 2 vendor library HTMLPurifier
Group: Development/Libraries
License: LGPLv2.1
Requires: %{php} >= 5.3.0
Requires: %{php_common} >= %{php_version}
Requires: %{name}-common = %{version}-%{release}
%description vendor-HTMLPurifier
Icinga Web 2 vendor library HTMLPurifier
%package vendor-JShrink
Version: 1.1.0
Release: 1%{?dist}
Summary: Icinga Web 2 vendor library JShrink
Group: Development/Libraries
License: BSD
Requires: %{php} >= 5.3.0
Requires: %{php_common} >= %{php_version}
Requires: %{name}-common = %{version}-%{release}
%description vendor-JShrink
Icinga Web 2 vendor library JShrink
%package vendor-lessphp
Version: 0.4.0
Release: 1%{?dist}
Summary: Icinga Web 2 vendor library lessphp
Group: Development/Libraries
License: MIT
Requires: %{php} >= 5.3.0
Requires: %{php_common} >= %{php_version}
Requires: %{name}-common = %{version}-%{release}
%description vendor-lessphp
Icinga Web 2 vendor library lessphp
%package vendor-Parsedown
Version: 1.6.0
Release: 1%{?dist}
Summary: Icinga Web 2 vendor library Parsedown
Group: Development/Libraries
License: MIT
Requires: %{php} >= 5.3.0
Requires: %{php_common} >= %{php_version}
Requires: %{name}-common = %{version}-%{release}
%description vendor-Parsedown
Icinga Web 2 vendor library Parsedown
%package vendor-zf1
Version: 1.12.20
Release: 1%{?dist}
Summary: Icinga Web 2's fork of Zend Framework 1
Group: Development/Libraries
License: BSD
Requires: %{php} >= 5.3.0
Obsoletes: %{name}-vendor-Zend
Requires: %{php_common} >= %{php_version}
Obsoletes: %{name}-vendor-Zend < 1.12.20
Requires: %{name}-common = %{version}-%{release}
%description vendor-zf1
Icinga Web 2's fork of Zend Framework 1
%prep
%setup -q -n icingaweb2
%if 0%{?selinux}
%setup -q
%if 0%{?use_selinux}
mkdir selinux
cp -p packages/selinux/icingaweb2.{fc,if,te} selinux
%endif
%build
%if 0%{?selinux}
%if 0%{?use_selinux}
cd selinux
for selinuxvariant in %{selinux_variants}
do
@@ -222,13 +262,20 @@ cp -pv etc/bash_completion.d/icingacli %{buildroot}/%{_sysconfdir}/bash_completi
cp -prv modules/{monitoring,setup,doc,translation} %{buildroot}/%{basedir}/modules
cp -prv library/Icinga %{buildroot}/%{phpdir}
cp -prv library/vendor/{dompdf,HTMLPurifier*,JShrink,lessphp,Parsedown,Zend} %{buildroot}/%{basedir}/library/vendor
cp -prv public/{css,font,img,js,error_norewrite.html} %{buildroot}/%{basedir}/public
cp -prv public/{css,font,img,js,error_norewrite.html,error_unavailable.html} %{buildroot}/%{basedir}/public
%if 0%{?php_fpm:1}
cp -pv packages/files/apache/icingaweb2.fpm.conf %{buildroot}/%{wwwconfigdir}/icingaweb2.conf
%else
cp -pv packages/files/apache/icingaweb2.conf %{buildroot}/%{wwwconfigdir}/icingaweb2.conf
%endif
cp -pv packages/files/bin/icingacli %{buildroot}/%{bindir}
%if 0%{?php_bin:1}
sed -i '1 s~#!.*~#!%{php_bin}~' %{buildroot}/%{bindir}/icingacli
%endif
cp -pv packages/files/public/index.php %{buildroot}/%{basedir}/public
cp -prv etc/schema %{buildroot}/%{docsdir}
cp -prv packages/files/config/modules/{setup,translation} %{buildroot}/%{configdir}/modules
%if 0%{?selinux}
%if 0%{?use_selinux}
cd selinux
for selinuxvariant in %{selinux_variants}
do
@@ -236,7 +283,8 @@ do
install -p -m 644 icingaweb2.pp.${selinuxvariant} %{buildroot}%{_datadir}/selinux/${selinuxvariant}/icingaweb2.pp
done
cd -
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
# TODO: Fix build problems on Icinga, see https://github.com/Icinga/puppet-icinga_build/issues/11
#/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
%endif
%pre
@@ -262,6 +310,11 @@ rm -rf %{buildroot}
%{basedir}/doc
%{basedir}/modules
%{basedir}/public
%if 0%{?suse_version}
# for lint on OBS
%dir %{dirname:%{wwwconfigdir}}
%dir %{wwwconfigdir}
%endif
%config(noreplace) %{wwwconfigdir}/icingaweb2.conf
%attr(2775,root,%{icingawebgroup}) %dir %{logdir}
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules/setup
@@ -278,14 +331,22 @@ exit 0
%files common
%defattr(-,root,root)
%{basedir}/application/locale
%dir %{basedir}
%dir %{basedir}/application
%dir %{basedir}/library
%dir %{basedir}/library/vendor
%dir %{basedir}/modules
%{basedir}/application/locale
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules
%files -n php-Icinga
%defattr(-,root,root)
%if 0%{?suse_version}
# for lint on OBS
%dir %{phpdir}
%endif
%{phpdir}/Icinga
@@ -296,7 +357,7 @@ exit 0
%attr(0755,root,root) %{bindir}/icingacli
%if 0%{?selinux}
%if 0%{?use_selinux}
%post selinux
for selinuxvariant in %{selinux_variants}
do
@@ -354,3 +415,67 @@ fi
%files vendor-zf1
%defattr(-,root,root)
%{basedir}/library/vendor/Zend
%changelog
* Tue Aug 18 2020 Johannes Meyer <johannes.meyer@icinga.com> 2.8.2-1
- Update to 2.8.2
* Mon Jun 29 2020 Johannes Meyer <johannes.meyer@icinga.com> 2.8.1-1
- Update to 2.8.1
* Mon Jun 8 2020 Johannes Meyer <johannes.meyer@icinga.com> 2.8.0-1
- Update to 2.8.0
- Add new requirement for package icinga-l10n
- [EPEL 7] We now require PHP 7.3 instead of PHP 7.1
- Please check uprading docs at /usr/share/icingaweb2/doc/80-Upgrading.md
* Fri Oct 18 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.7.3-1
- Update to 2.7.3
* Wed Oct 16 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.7.2-1
- Update to 2.7.2
* Wed Aug 14 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.7.1-1
- Update to 2.7.1
* Tue Jul 30 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.7.0-1
- Update to 2.7.0
* Wed Apr 24 2019 Johannes Meyer <johannes.meyer@icinga.com> 2.6.3-1
- Update to 2.6.3
* Wed Nov 21 2018 Eric Lippmann <eric.lippmann@icinga.com> 2.6.2-1
- Update to 2.6.2
* Thu Aug 02 2018 Eric Lippmann <eric.lippmann@icinga.com> 2.6.1-1
- Update to 2.6.1
* Thu Jul 19 2018 Blerim Sheqa <blerim.sheqa@icinga.com> 2.6.0-1
- Update to 2.6.0
* Fri Apr 27 2018 Eric Lippmann <eric.lippmann@icinga.com> 2.5.3-1
- Update to 2.5.3
* Thu Apr 26 2018 Eric Lippmann <eric.lippmann@icinga.com> 2.5.2-1
- Update to 2.5.2
* Mon Jan 22 2018 Markus Frosch <markus.frosch@icinga.com> 2.5.1-1
- Update to 2.5.1
- Remove FPM patches
* Wed Nov 29 2017 Eric Lippmann <eric.lippmann@icinga.com> 2.5.0-2
- FPM: Add patch to support both Apache >= 2.4 and Apache < 2.4
* Tue Nov 28 2017 Eric Lippmann <eric.lippmann@icinga.com> 2.5.0-1
- Install error_unavailable.html
- Add patch to fix Apache FPM config
* Mon Nov 27 2017 Markus Frosch <markus.frosch@icinga.com> 2.5.0-1
- Update to 2.5.0
- All packages now require PHP >= 5.6
- [EPEL 6 + 7] We now require PHP 7 from SCL packages, php-fpm as runtime engine
- [SUSE / openSUSE] Requirements will force the installation of php7
- Please check upgrading docs at /usr/share/icingaweb2/doc/80-Upgrading.md
* Thu Sep 28 2017 Markus Frosch <markus.frosch@icinga.com> 2.4.2-1
- Update to 2.4.2

View File

@@ -0,0 +1,88 @@
Name: icli
Version: 0.48
%if %{_vendor} == "suse"
Release: 01.%{_distro}
%else
Release: 1%{?dist}
%endif
Summary: Nagios/Icinga commandline interface
Group: System/Monitoring
License: GPL
URL: http://derf.homelinux.org/
Source0: %{name}-%{version}.tgz
BuildRequires: perl-Module-Build perl-Test-Command perl-Test-Compile perl-autodie
BuildRequires: perl-Test-Pod perl-Term-Size perl-autodie perl-List-MoreUtils
Requires: perl-Term-Size
Requires: icinga
%if %{_vendor} == "suse"
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
%define debug_package %{nil}
%define idir %{_datadir}/%{name}
%description
icli is a command line interface to Icinga. By default it lists all services and their states.
Note that when supplying custom config and status file paths, icli also works with Nagios.
100% compatibility is not guaranteed, however.
icli only works when executed on the host running the Icinga daemon.
To use it on another host, shell aliases (like alias icli='ssh $icingahost icli')
or similar are recommended.
You can narrow down the list of services you want displayed either using filters
(like icli -z!o), the -h/-s arguments (icli -h aneurysm -s Libraries,Websites) or
commandline args (icli aneurysm/{Libraries,Websites} with shell expansion).
%prep
%setup -q -n %{name}-%{version}
%build
%if %{_vendor} == "suse"
%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} \
--installdirs vendor --icli-object-file=/var/lib/icinga/objects.cache \
--icli-status-file=/var/lib/icinga/status.dat --icli-command-file=/var/spool/icinga/icinga.cmd
%else
%if %{_vendor} == "redhat"
%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} \
--installdirs vendor --icli-object-file=/var/spool/icinga/objects.cache \
--icli-status-file=/var/spool/icinga/status.dat --icli-command-file=/var/spool/icinga/cmd/icinga.cmd
%else
%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} --installdirs vendor
%endif
%endif
./Build
%install
./Build install
%{__install} -d %{buildroot}%{_mandir}
# the installer installs the module into /usr/lib/perl5 directly, but this is not found, when using icli:
%{__install} -d %{buildroot}%{perl_vendorlib}
mv %{buildroot}%{_prefix}/lib/perl5/App %{buildroot}%{perl_vendorlib}
mv %{buildroot}%{_prefix}/man/man1 %{buildroot}%{_mandir}
mv %{buildroot}%{_prefix}/man/man3 %{buildroot}%{_mandir}
rmdir %{buildroot}%{_prefix}/man
rm -rf %{buildroot}%{_prefix}/lib/perl5/x86_64-linux-thread-multi
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/*
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/*
%files
%defattr(0644,root,root,0755)
%doc Changelog COPYING README
%attr(0755,icinga,icinga) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man3/App::Icli.3pm.gz
%{_mandir}/man3/App::Icli::ConfigData.3pm.gz
%{perl_vendorlib}/App/Icli.pm
%{perl_vendorlib}/App/Icli/ConfigData.pm
%changelog
* Wed Jun 18 2014 <elpito@bluewin.ch>
- Upgraded to 0.48 release
* Mon Jan 13 2014 <elpito@bluewin.ch>
- Upgraded to git version of package.
* Sat Jan 11 2014 <elpito@bluewin.ch>
- New package.

View File

@@ -0,0 +1,463 @@
# Use old cmake macro
%global __cmake_in_source_build 1
%global PRERELEASE RC1
%global DIRVERSION %{version}
#global GITCOMMIT db40b2a
# use the line below for pre-releases
#global DIRVERSION %{version}-%{GITCOMMIT}
%global DIRVERSION %{version}%{PRERELEASE}
%global _hardened_build 1
%ifarch %{arm}
# Disable LTO for arm, see http://koji.rpmfusion.org/koji/taskinfo?taskID=424139
%global _lto_cflags %{nil}
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
# We support hte following options:
# --with,
# * dvdcss - Include DVD decryption support
#
# Default: Do not ship DVD decryption for legal reasons
%bcond_with dvdcss
# Optional deps (not in EPEL)
%if 0%{?fedora}
# (libbluray in EPEL 6 is too old.)
%global _with_libbluray 1
%if 0%{?fedora} < 31
%global _with_cwiid 1
%else
%global _with_cwiid 0
%endif
%global _with_libssh 1
%global _with_libcec 1
%global _with_external_ffmpeg 1
%global _with_wayland 1
%endif
%if 0%{?_with_wayland}
%global kodi_backends x11 wayland gbm
%else
%global kodi_backends x11 gbm
%endif
Name: kodi
Version: 19.0
Release: 20210123%{?dist}
Summary: Media center
License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT
# Main binary and all supporting files are GPLv2+/GPLv3+
# Some supporting libraries use the LGPL / BSD / MIT license
Group: Applications/Multimedia
URL: http://www.kodi.tv/
Source0: %{name}-%{DIRVERSION}-patched.tar.xz
# kodi contains code that we cannot ship, as well as redundant private
# copies of upstream libraries that we already distribute. Therefore
# we use this script to remove the code before shipping it.
# Invoke this script while in the directory where the tarball is located:
# ./kodi-generate-tarball-xz.sh
Source1: kodi-generate-tarball-xz.sh
# kodi uses modified libdvd{css,nav,read} source and downloads at build time
# wget -O kodi-libdvdnav-6.0.0-Leia-Alpha-3.tar.gz https://github.com/xbmc/libdvdnav/archive/6.0.0-Leia-Alpha-3.tar.gz
Source2: kodi-libdvdnav-6.0.0-Leia-Alpha-3.tar.gz
# wget -O kodi-libdvdread-6.0.0-Leia-Alpha-3.tar.gz https://github.com/xbmc/libdvdread/archive/6.0.0-Leia-Alpha-3.tar.gz
Source3: kodi-libdvdread-6.0.0-Leia-Alpha-3.tar.gz
%if %{with dvdcss}
# wget -O kodi-libdvdcss-1.4.2-Leia-Beta-5.tar.gz https://github.com/xbmc/libdvdcss/archive/1.4.2-Leia-Beta-5.tar.gz
Source4: kodi-libdvdcss-1.4.2-Leia-Beta-5.tar.gz
%endif
%if ! 0%{?_with_external_ffmpeg}
# wget -O ffmpeg-4.3.1-Matrix-Beta1.tar.gz https://github.com/xbmc/FFmpeg/archive/4.3.1-Matrix-Beta1.tar.gz
Source5: ffmpeg-4.3.1-Matrix-Beta1.tar.gz
%endif
# Set program version parameters
Patch1: kodi-19-versioning.patch
# Prevent trousers from being linked, which breaks Samba
Patch2: kodi-18-trousers.patch
# Fix an annobin issue
Patch3: kodi-18-annobin-workaround.patch
# Workaround for brp-mangle-shebangs behavior (RHBZ#1787088)
Patch4: kodi-18-brp-mangle-shebangs.patch
%ifarch x86_64 i686
%global _with_crystalhd 1
%endif
# Upstream does not support ppc64
ExcludeArch: %{power64}
BuildRequires: a52dec-devel
BuildRequires: afpfs-ng-devel
BuildRequires: alsa-lib-devel
BuildRequires: avahi-devel
BuildRequires: bluez-libs-devel
BuildRequires: boost-devel
BuildRequires: bzip2-devel
BuildRequires: cmake3
BuildRequires: crossguid-devel
%if 0%{?_with_cwiid}
BuildRequires: cwiid-devel
%endif
BuildRequires: dbus-devel
BuildRequires: desktop-file-utils
BuildRequires: e2fsprogs-devel
BuildRequires: enca-devel
BuildRequires: expat-devel
BuildRequires: faad2-devel
BuildRequires: firewalld-filesystem
%if 0%{?_with_external_ffmpeg}
BuildRequires: ffmpeg-devel
%else
BuildRequires: trousers-devel
%endif
BuildRequires: flac-devel
BuildRequires: flatbuffers-devel
BuildRequires: flex
BuildRequires: fmt-devel
BuildRequires: fontconfig-devel
BuildRequires: fontpackages-devel
BuildRequires: freetype-devel
BuildRequires: fribidi-devel
BuildRequires: fstrcmp-devel
%if 0%{?el6}
BuildRequires: gettext-devel
%else
BuildRequires: gettext-autopoint
%endif
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: giflib-devel
BuildRequires: glew-devel
BuildRequires: glib2-devel
BuildRequires: gperf
BuildRequires: gtest-devel
BuildRequires: jasper-devel
BuildRequires: java-devel
BuildRequires: lame-devel
BuildRequires: lcms2-devel
BuildRequires: libXinerama-devel
BuildRequires: libXmu-devel
BuildRequires: libXrandr-devel
BuildRequires: libXtst-devel
BuildRequires: libass-devel >= 0.9.7
%if 0%{?_with_libbluray}
BuildRequires: libbluray-devel
%endif
BuildRequires: libcap-devel
BuildRequires: libcdio-devel
%if 0%{?_with_libcec}
%if 0%{?fedora} > 24
BuildRequires: libcec-devel >= 4.0.0
%else
BuildRequires: libcec-devel < 4.0.0
%endif
%endif
%if 0%{?_with_crystalhd}
BuildRequires: libcrystalhd-devel
%endif
BuildRequires: libcurl-devel
BuildRequires: libdav1d-devel
BuildRequires: libdca-devel
BuildRequires: libdrm-devel
BuildRequires: libidn2-devel
BuildRequires: libinput-devel
%if 0%{?el6}
BuildRequires: libjpeg-devel
%else
BuildRequires: libjpeg-turbo-devel
%endif
BuildRequires: libmad-devel
BuildRequires: libmicrohttpd-devel
BuildRequires: libmms-devel
BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel
BuildRequires: libmpeg2-devel
BuildRequires: libnfs-devel
BuildRequires: libogg-devel
# for AirPlay support
BuildRequires: shairplay-devel
BuildRequires: libplist-devel
BuildRequires: libpng-devel
BuildRequires: librtmp-devel
BuildRequires: libsamplerate-devel
BuildRequires: libsmbclient-devel
%if 0%{?_with_libssh}
BuildRequires: libssh-devel
%endif
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: libunistring-devel
BuildRequires: libuuid-devel
BuildRequires: libva-devel
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
%if 0%{?_with_wayland}
BuildRequires: libxkbcommon-devel
%endif
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: lirc-devel
BuildRequires: lzo-devel
BuildRequires: mariadb-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: mesa-libGLES-devel
BuildRequires: mesa-libgbm-devel
BuildRequires: nasm
BuildRequires: ninja-build
BuildRequires: pcre-devel
BuildRequires: pixman-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: python3-devel
BuildRequires: python3-pillow
BuildRequires: /usr/bin/pathfix.py
BuildRequires: rapidjson-devel
BuildRequires: spdlog-devel
BuildRequires: sqlite-devel
BuildRequires: swig
BuildRequires: systemd-devel
BuildRequires: taglib-devel >= 1.10
BuildRequires: tinyxml-devel
BuildRequires: tre-devel
BuildRequires: wavpack-devel
%if 0%{?_with_wayland}
BuildRequires: wayland-protocols-devel
BuildRequires: waylandpp-devel
%endif
BuildRequires: yajl-devel
BuildRequires: zlib-devel
Requires: (%{name}-firewalld = %{version}-%{release} if firewalld)
Requires: dejavu-sans-fonts
# need explicit requires for these packages
# as they are dynamically loaded via XBMC's arcane
# pseudo-DLL loading scheme (sigh)
%if 0%{?_with_libbluray}
Requires: libbluray%{?_isa}
%endif
%if 0%{?_with_libcec}
%if 0%{?fedora} > 24
Requires: libcec%{?_isa} >= 4.0.0
%else
Requires: libcec%{?_isa} < 4.0.0
%endif
%endif
%if 0%{?_with_crystalhd}
Requires: libcrystalhd%{?_isa}
%endif
Requires: libmad%{?_isa}
Requires: librtmp%{?_isa}
Requires: shairplay-libs%{?_isa}
# needed when doing a minimal install, see
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1844
Requires: glx-utils
Requires: xorg-x11-utils
# This is just symlinked to, but needed both at build-time
# and for installation
Requires: python3-pillow%{?_isa}
# https://github.com/xbmc/xbmc/pull/18534
Provides: kodi-common = %{version}-%{release}
Obsoletes: kodi-common < %{version}-%{release}
Provides: kodi-gbm = %{version}-%{release}
Obsoletes: kodi-gbm < %{version}-%{release}
Provides: kodi-wayland = %{version}-%{release}
Obsoletes: kodi-wayland < %{version}-%{release}
Provides: kodi-x11 = %{version}-%{release}
Obsoletes: kodi-x11 < %{version}-%{release}
%description
Kodi is a free cross-platform media-player jukebox and entertainment hub.
Kodi can play a spectrum of of multimedia formats, and featuring playlist,
audio visualizations, slideshow, and weather forecast functions, together
third-party plugins.
%package devel
Summary: Development files needed to compile C programs against kodi
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: xbmc-devel < 14.0
Provides: xbmc-devel = %{version}
%description devel
Kodi is a free cross-platform media-player jukebox and entertainment hub.
If you want to develop programs which use Kodi's libraries, you need to
install this package.
%package eventclients
Summary: Media center event client remotes
Obsoletes: xbmc-eventclients < 14.0
Provides: xbmc-eventclients = %{version}
%description eventclients
This package contains support for using Kodi with the PS3 Remote, the Wii
Remote, a J2ME based remote and the command line xbmc-send utility.
%package eventclients-devel
Summary: Media center event client remotes development files
Requires: %{name}-eventclients%{?_isa} = %{version}-%{release}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Obsoletes: xbmc-eventclients-devel < 14.0
Provides: xbmc-eventclients-devel = %{version}
%description eventclients-devel
This package contains the development header files for the eventclients
library.
%package firewalld
Summary: FirewallD metadata files for Kodi
Requires: firewalld-filesystem
Requires(post): firewalld-filesystem
%description firewalld
This package contains FirewallD files for Kodi.
%prep
%setup -q -n %{name}-%{DIRVERSION}
%patch1 -p1 -b.versioning
%patch2 -p1 -b.trousers
%patch3 -p1 -b.innobinfix
%patch4 -p1 -b.brp-mangle-shebangs
# Fix up Python shebangs
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" \
tools/EventClients/lib/python/zeroconf.py \
tools/EventClients/Clients/PS3BDRemote/ps3_remote.py \
tools/EventClients/lib/python/ps3/sixaxis.py \
tools/EventClients/lib/python/ps3/sixpair.py \
tools/EventClients/lib/python/ps3/sixwatch.py \
tools/EventClients/Clients/KodiSend/kodi-send.py \
tools/EventClients/lib/python/xbmcclient.py
%if 0%{?fedora} < 32
# Fix python binary search
sed -i 's/ pkg_check_modules(PC_PYTHON python>=2.7 QUIET)/ pkg_check_modules(PC_PYTHON python=2.7 QUIET)/' cmake/modules/FindPython.cmake
%endif
%build
%cmake3 \
%if %{with dvdcss}
-DLIBDVDCSS_URL=%{SOURCE4} \
%else
-DENABLE_DVDCSS=OFF \
%endif
%if ! 0%{?_with_external_ffmpeg}
-DFFMPEG_URL=%{SOURCE5} \
%endif
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG" \
-DCMAKE_ASM_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG" \
-DENABLE_DEBUGFISSION=OFF \
-GNinja \
-DENABLE_EVENTCLIENTS=ON \
-DENABLE_INTERNAL_CROSSGUID=OFF \
-DLIRC_DEVICE=/var/run/lirc/lircd \
-DLIBDVDNAV_URL=%{SOURCE2} \
-DLIBDVDREAD_URL=%{SOURCE3} \
-DPYTHON_EXECUTABLE=%{__python3} \
-DCORE_PLATFORM_NAME="%{kodi_backends}" \
-DAPP_RENDER_SYSTEM=gl \
.
%ninja_build
%install
%ninja_install
# remove the doc files from unversioned /usr/share/doc/xbmc, they should be in versioned docdir
rm -r $RPM_BUILD_ROOT/%{_datadir}/doc/
desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/kodi.desktop
# Stop shipping the duplicate xsession file
rm -f $RPM_BUILD_ROOT/%{_datadir}/xsessions/xbmc.desktop
# Normally we are expected to build these manually. But since we are using
# the system Python interpreter, we also want to use the system libraries
install -d $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib
ln -s %{python3_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib/PIL
#install -d $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib
# Use external font files instead of bundled ones
ln -sf %{_fontbasedir}/dejavu/DejaVuSans-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.estouchy/fonts/
# Move man-pages into system dir
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/
mv docs/manpages ${RPM_BUILD_ROOT}%{_mandir}/man1/
# Remove wiiremote man page if support was disabled
%if ! 0%{?_with_cwiid}
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/kodi-wiiremote.1
%endif
%post firewalld
%firewalld_reload
%files
%license LICENSE.md LICENSES/
%doc README.md docs
%{_bindir}/kodi
%{_bindir}/kodi-standalone
%{_bindir}/JsonSchemaBuilder
%{_bindir}/TexturePacker
%{_libdir}/kodi/
%{_datadir}/kodi/
%{_datadir}/xsessions/kodi.desktop
%{_datadir}/applications/kodi.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_mandir}/man1/kodi.1.gz
%{_mandir}/man1/kodi.bin.1.gz
%{_mandir}/man1/kodi-standalone.1.gz
%{_mandir}/man1/TexturePacker.1.gz
%files devel
%{_includedir}/kodi
%files eventclients
%license LICENSE.md LICENSES/
%{python3_sitelib}/kodi
%dir %{_datadir}/pixmaps/kodi
%{_datadir}/pixmaps/kodi/*.png
%{_bindir}/kodi-ps3remote
%{_bindir}/kodi-send
%if 0%{?_with_cwiid}
%{_bindir}/kodi-wiiremote
%endif
%{_mandir}/man1/kodi-ps3remote.1.gz
%{_mandir}/man1/kodi-send.1.gz
%if 0%{?_with_cwiid}
%{_mandir}/man1/kodi-wiiremote.1.gz
%endif
%files eventclients-devel
%{_includedir}/kodi/xbmcclient.h
%files firewalld
%license LICENSE.md LICENSES/
%{_prefix}/lib/firewalld/services/kodi-eventserver.xml
%{_prefix}/lib/firewalld/services/kodi-http.xml
%{_prefix}/lib/firewalld/services/kodi-jsonrpc.xml
%changelog

View File

@@ -0,0 +1,114 @@
# Icinga L10n | (c) 2020 Icinga GmbH
%define revision 1
%define basedir %{_datadir}/icinga-L10n
%if 0%{?el5}%{?el6}%{?amzn}%{?suse_version}
%define use_selinux 0
%else
%define use_selinux 1
%define selinux_variants mls targeted
%endif
Name: icinga-l10n
Version: 1.0.0
Release: %{revision}%{?dist}
Summary: Icinga L10n
License: GPLv2+
URL: https://icinga.com
Source0: https://github.com/Icinga/L10n/archive/v%{version}.tar.gz
Source1: selinux.tgz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Packager: Icinga GmbH <info@icinga.com>
%prep
%setup -q -n L10n-1.0.0
tar xzf %{S:1}
%build
%if 0%{?use_selinux}
cd selinux
for selinuxvariant in %{selinux_variants}
do
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
mv icinga-l10n.pp icinga-l10n.pp.${selinuxvariant}
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
done
cd -
%endif
%install
mkdir -p %{buildroot}/%{basedir}
cp *.md %{buildroot}/%{basedir}
cp COPYING %{buildroot}/%{basedir}
cp -prv locale %{buildroot}/%{basedir}
find %{buildroot}/%{basedir}/locale -name *.po -delete
%if 0%{?use_selinux}
cd selinux
for selinuxvariant in %{selinux_variants}
do
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
install -p -m 644 icinga-l10n.pp.${selinuxvariant} %{buildroot}%{_datadir}/selinux/${selinuxvariant}/icinga-l10n.pp
done
cd -
%endif
%clean
rm -rf %{buildroot}
# Main package
%description
L10n (short for Localization) provides all translations available for Icinga.
%files
%defattr(-,root,root)
%{basedir}
%doc README.md
%doc CONTRIBUTING.md
# Selinux package
%if 0%{?use_selinux}
%package selinux
Summary: SELinux policy for Icinga L10n
BuildRequires: checkpolicy, selinux-policy-devel
Requires: %{name} = %{version}-%{release}
Requires(post): policycoreutils
Requires(postun): policycoreutils
%description selinux
SELinux policy for Icinga L10n
%post selinux
for selinuxvariant in %{selinux_variants}
do
%{_sbindir}/semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/icinga-l10n.pp &> /dev/null || :
done
%{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
%postun selinux
if [ $1 -eq 0 ] ; then
for selinuxvariant in %{selinux_variants}
do
%{_sbindir}/semodule -s ${selinuxvariant} -r icinga-l10n &> /dev/null || :
done
[ -d %{basedir} ] && %{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
fi
%files selinux
%defattr(-,root,root,0755)
%doc selinux/*
%{_datadir}/selinux/*/icinga-l10n.pp
%endif
%changelog
* Mon Jun 8 2020 Johannes Meyer <johannes.meyer@icinga.com> 1.0.0-1
- Initial release

View File

@@ -0,0 +1,111 @@
Name: libva
Version: 1.8.2
Release: 1%{?dist}
Summary: Video Acceleration (VA) API for Linux
Group: System Environment/Libraries
License: MIT
URL: http://freedesktop.org/wiki/Software/vaapi
Source0: http://www.freedesktop.org/software/vaapi/releases/libva/libva-%{version}.tar.bz2
Source1: http://www.freedesktop.org/software/vaapi/releases/libva/libva-utils-%{version}.tar.bz2
BuildRequires: libudev-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libdrm-devel
BuildRequires: libpciaccess-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: mesa-libGL-devel
BuildRequires: mesa-libGLES-devel
%{!?_without_wayland:
BuildRequires: wayland-devel
BuildRequires: pkgconfig(wayland-client) >= 1
BuildRequires: pkgconfig(wayland-scanner) >= 1
BuildRequires: pkgconfig(wayland-server) >= 1
}
# owns the %{_libdir}/dri directory
Requires: mesa-dri-filesystem
%description
Libva is a library providing the VA API video acceleration API.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package utils
Summary: Tools for %{name} (including vainfo)
Group: Development/Libraries
Requires: %{name}%{_isa} = %{version}-%{release}
%description utils
The %{name}-utils package contains tools that are provided as part
of %{name}, including the vainfo tool for determining what (if any)
%{name} support is available on a system.
%prep
%setup -q -b 1 -n libva-utils-%{version}
%setup -q
%build
%configure --disable-static \
--enable-glx \
%{?_without_wayland:--disable-wayland}
# 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 %{?_smp_mflags}
pushd %{_builddir}/libva-utils-%{version}
%configure --disable-static \
--enable-glx \
%{?_without_wayland:--disable-wayland}
make %{?_smp_mflags}
popd
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
pushd %{_builddir}/libva-utils-%{version}
make install DESTDIR=%{buildroot} INSTALL="install -p"
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING
%{_libdir}/libva*.so.*
# Keep these specific: if any new real drivers start showing up
# in libva, we need to know about it so they can be patent-audited
%{_libdir}/dri/dummy_drv_video.so
%files devel
%{_includedir}/va
%{_libdir}/libva*.so
%{_libdir}/pkgconfig/libva*.pc
%files utils
%{_bindir}/vainfo
%{_bindir}/loadjpeg
%{_bindir}/jpegenc
%{_bindir}/avcenc
%{_bindir}/h264encode
%{_bindir}/mpeg2vldemo
%{_bindir}/mpeg2vaenc
%{_bindir}/putsurface
%{!?_without_wayland:%{_bindir}/putsurface_wayland}
%changelog
* Sat Dec 9 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
- Update to 1.8.2

View File

@@ -0,0 +1,111 @@
#
# spec file for package makemkv
#
# v=1.14.4
# wget http://www.makemkv.com/download/makemkv-bin-$v.tar.gz -O makemkv-bin-$v.tar.gz
# wget http://www.makemkv.com/download/makemkv-oss-$v.tar.gz -O makemkv-oss-$v.tar.gz
Name: makemkv
Version: 1.15.0
Release: 0%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: One click DVD and Blu-ray converter
Url: http://www.makemkv.com/download/
Source0: http://www.%{name}.com/download/%{name}-oss-%{version}.tar.gz
Source1: http://www.%{name}.com/download/%{name}-bin-%{version}.tar.gz
# patch to disable the eula asking (interactive!)
Source2: makemkv_eula.patch
License: Comercial
Group: Unspecified
BuildRequires: qt5-devel
Provides: libdriveio.so.0()(64bit)
Provides: libmakemkv.so.1()(64bit)
Provides: libmmbd.so.0()(64bit)
# requires rpmfusion-free-updates repository!
Requires: ffmpeg-libs
%description
MakeMKV is your one-click solution to convert video that you own into free
and patents-unencumbered format that can be played everywhere.
MakeMKV is a format converter, otherwise called "transcoder".
It converts the video clips from proprietary (and usually encrypted)
disc into a set of MKV files, preserving most information but not
changing it in any way. The MKV format can store multiple video/audio
tracks with all meta-information and preserve chapters.
There are many players that can play MKV files nearly on all platforms,
and there are tools to convert MKV files to many formats,
including DVD and Blu-ray discs.
Additionally MakeMKV can instantly stream decrypted video without
intermediate conversion to wide range of players,
so you may watch Blu-ray and DVD discs with your favorite
player on your favorite OS or on your favorite device.
* Reads DVD and Blu-ray discs
* Reads Blu-ray discs protected with latest versions of AACS and BD+
* Preserves all video and audio tracks, including HD audio
* Preserves chapters information
* Preserves all meta-information (track language, audio type)
* Fast conversion - converts as fast as your drive can read data.
* No additional software is required for conversion or decryption.
* Available for Windows, Mac OS X and Linux
* Functionality to open DVD discs is free and will always stay free.
* All features (including Blu-ray decryption and processing) are free during BETA.
Attention: To make it work, you need rpmfusion-free-updates repository configured!
%prep
%setup -q -n %{name}-oss-%{version}
%build
%define debug_package %{nil}
%{configure}
%{__make}
pushd %{_builddir}
tar xzf %{S:1}
popd
pushd %{_builddir}/%{name}-bin-%{version}
patch -p1 < %{S:2}
popd
%install
%{make_install}
pushd %{_builddir}/%{name}-bin-%{version}
%{__make}
%{make_install}
popd
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/*
%{_datarootdir}/icons/hicolor/*/apps/makemkv.png
%{_datarootdir}/applications/makemkv.desktop
%{_datarootdir}/MakeMKV/*
%changelog
* Fri Mar 6 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.15.0.
* Mon Dec 30 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.14.7.
* Sat Sep 14 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.14.5.
* Sat Jul 27 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.14.4.
* Thu Apr 4 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.14.3.
* Fri Nov 16 2018 Daniel Steiner <daniel.steiner@greenmail.ch>
- Update to 1.14.1.
* Fri Jan 5 2018 Daniel Steiner <elpito@bluewin.ch>
- Update to 1.10.8.
* Tue Jan 3 2017 Daniel Steiner <elpito@bluewin.ch>
- Initial setup.

View File

@@ -0,0 +1,70 @@
#
# spec file for package mediaelch
#
%define quavers 0.7.6
Name: MediaElch
Summary: A Media Manager for XBMC
Url: http://www.mediaelch.de/
Version: 2.6.0
Release: 1%{?dist}
License: GPL-3.0+
Group: Productivity/Multimedia/Other
Source0: mediaelch-%{version}.tar.gz
Source1: quazip-%{quavers}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtmultimedia-devel
BuildRequires: qt5-qtscript-devel
BuildRequires: qt5-qtwebkit-devel
BuildRequires: qt5-qttools-devel
BuildRequires: libmediainfo-devel
BuildRequires: zlib-devel
BuildRequires: libzen-devel
BuildRequires: libcurl-devel
Requires: qt5-qtscript
%description
MediaElch is your Media Manager for handling Movies, TV Shows and Concerts/Music Videos
in XBMC. It is designed to gather information from various movie databases on the internet
and store these information directly to XBMCs database or in nfo files. MediaElch is also
downloading movie posters, backdrops, fan arts and pictures of the actors as well as
trailers.
%global debug_package %{nil}
%prep
echo %{BuildRoot}
%setup -qn MediaElch-%{version}
pushd third_party
rm -rf quazip
tar xzf %{S:1}
ln -s quazip-%{quavers} quazip
popd
%build
qmake-qt5
export CFLAGS="$RPM_OPT_FLAGS -Wall"
make
%install
export INSTALL_ROOT="$RPM_BUILD_ROOT"
make install
%files
%defattr(-,root,root,-)
%doc COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Sat May 4 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
- Update to 2.6.0.
* Tue Jan 3 2017 Daniel Steiner <elpito@bluewin.ch>
- Initial setup.

View File

@@ -0,0 +1,146 @@
# define svn plugins release this will be checked out:
%define svnrel 954
# subversion repo link:
%define svnlink https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/
# name of nagios:
%define nag nagios
Name: nagios-plugins-own
Version: 1.0
Release: %{svnrel}%{?dist}
Summary: Nagios/Icinga own plugins
License: GPL
URL: http://www.dsteiner.ch/
# cd ~/svn; svn co --username sda https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/
# cd ~/svn; svn up
# tar --exclude=templates --exclude=.svn -czf ../rpmbuild/SOURCES/nagios-952.tgz nagios
Source0: nagios-%{svnrel}.tgz
%package netbackup
Summary: Nagios Plugins - Netbackup
Group: Applications/System
%description netbackup
%package backuppc
Summary: Nagios Plugins - BackupPC
Group: Applications/System
%description backuppc
%package mysql
Summary: Nagios Plugins - MySQL
Group: Applications/System
%description mysql
%package hw
Summary: Nagios Plugins - Hardware
Group: Applications/System
%description hw
%package all
Summary: Nagios Plugins - All package
Group: Applications/System
Requires: %{name}, %{name}-hw, %{name}-backuppc, %{name}-netbackup, %{name}-mysql
%description all
%define idir %{_libdir}/%{nag}/plugins
%description
Mostly self written Nagioa/Icinga plugins.
%prep
%setup -q -n nagios
%install
%{__install} -d %{buildroot}%{idir}
%{__install} -D * %{buildroot}%{idir}/
%files
%defattr(0755,root,root,0755)
%{idir}/check-iotop.pl
%{idir}/check-swap-io.pl
%{idir}/check_access_log.pl
%{idir}/check_apache-perf.pl
%{idir}/check_apache2.sh
%{idir}/check_apache_log_pattern.pl
%{idir}/check_apcext.pl
%{idir}/check_arch_status.pl
%{idir}/check_bind.sh
%{idir}/check_cpu
%{idir}/check_cpu.pl
%{idir}/check_cpu_stat.pl
%{idir}/check_esx3.pl
%{idir}/check_events.pl
%{idir}/check_fail2ban.pl
%{idir}/check_http_content.pl
%{idir}/check_icingastats
%{idir}/check_insight_log2.sh
%{idir}/check_iotop.py
%{idir}/check_linux_bonding.pl
%{idir}/check_linux_procstat.pl
%{idir}/check_log3.pl
%{idir}/check_log_pattern.pl
%{idir}/check_mem_uses.pl
%{idir}/check_memcached.pl
%{idir}/check_mod_security.pl
%{idir}/check_multipath.sh
%{idir}/check_os_updates.sh
%{idir}/check_procs.pl
%{idir}/check_rsync_status.pl
%{idir}/check_squid
%{idir}/check_squid.pl
%{idir}/check_squidwatch-status.pl
%{idir}/check_ssl_cert
%{idir}/check_svn.py
%{idir}/check_tape_drives.sh
%{idir}/check_tapes_reserved.pl
%{idir}/check_unix_open_fds.pl
%{idir}/check_updates.pl
%{idir}/check_webpage.rb
%{idir}/config-del.pl
%{idir}/create-hosts-files.sh
%{idir}/get-esx-luns.pl
%{idir}/stat_net.pl
%{idir}/mrtg-nimbus.conf
%{idir}/mrtg-ping-probe.pl
%files netbackup
%defattr(0755,root,root,0755)
%{idir}/check_nb_basicdisks.pl
%{idir}/check_nb_errs-0.3.pl
%{idir}/check_nb_jobs.pl
%{idir}/check_nb_jukebox-0.2.pl
%{idir}/check_nb_queue-0.1.pl
%{idir}/check_nb_volumes.pl
%files backuppc
%defattr(0755,root,root,0755)
%{idir}/check_backuppc
%files mysql
%defattr(0755,root,root,0755)
%{idir}/check_mysql-wrapper.pl
%{idir}/check_mysqld.pl
%{idir}/mysql_slave_replication.pl
%files hw
%defattr(0755,root,root,0755)
%{idir}/3warecheck.pl
%{idir}/hpsmartcheck.pl
%{idir}/cciss-vol-check.pl
%{idir}/check_cciss
%{idir}/check_uniflair.pl
%{idir}/switches.conf
%files all
%changelog
* Sat Jan 11 2014 <elpito@bluewin.ch>
- New package.

View File

@@ -0,0 +1,815 @@
%global _hardened_build 1
Name: nagios-plugins
Version: 2.2.1
Release: 2%{?dist}
Summary: Host/service/network monitoring program plugins for Nagios
Group: Applications/System
License: GPLv2+
URL: https://www.nagios-plugins.org/
Source0: https://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
Source1: nagios-plugins.README.Fedora
Patch2: nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch
# https://bugzilla.redhat.com/512559
Patch5: nagios-plugins-0005-Prevent-check_swap-from-returning-OK-if-no-swap-acti.patch
Patch7: nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
# Patch 8 no longer needed
# Patch 9 no longer needed
# Patch 10 no longer needed
Patch11: nagios-plugins-0011-various_bugzilla_fixes.patch
BuildRequires: openldap-devel
BuildRequires: mysql-devel
BuildRequires: net-snmp-devel
BuildRequires: net-snmp-utils
BuildRequires: samba-client
BuildRequires: postgresql-devel
BuildRequires: gettext
BuildRequires: %{_bindir}/ssh
BuildRequires: bind-utils
BuildRequires: ntp
BuildRequires: %{_bindir}/mailq
BuildRequires: fping
BuildRequires: perl-generators
BuildRequires: perl-Net-SNMP
BuildRequires: qstat
%if 0%{?rhel}
BuildRequires: radiusclient-ng-devel
%else
BuildRequires: freeradius-client-devel
%endif
BuildRequires: qstat
BuildRequires: libdbi-devel
%if 0%{?fedora} >25
## This is due to the patch to fix openssl
BuildRequires: automake
BuildRequires: autoconf
%endif
Requires: nagios-common >= 3.3.1-1
Requires: openssl
Obsoletes: nagios-plugins-linux_raid < 1.4.16-11
# nagios-plugins-1.4.16: the included gnulib files were last updated
# in June/July 2010
# Bundled gnulib exception (https://fedorahosted.org/fpc/ticket/174)
Provides: bundled(gnulib)
%global reqfilt sh -c "%{__perl_requires} | sed -e 's!perl(utils)!nagios-plugins-perl!'"
%global __perl_requires %{reqfilt}
%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 those plugins.
%package all
Summary: Nagios Plugins - All plugins
Group: Applications/System
Requires: nagios-plugins-breeze, nagios-plugins-by_ssh, nagios-plugins-dhcp, nagios-plugins-dig, nagios-plugins-disk, nagios-plugins-disk_smb, nagios-plugins-dns, nagios-plugins-dummy, nagios-plugins-file_age, nagios-plugins-flexlm, nagios-plugins-fping, nagios-plugins-hpjd, nagios-plugins-http, nagios-plugins-icmp, nagios-plugins-ide_smart, nagios-plugins-ircd, nagios-plugins-ldap, nagios-plugins-load, nagios-plugins-log, nagios-plugins-mailq, nagios-plugins-mrtg, nagios-plugins-mrtgtraf, nagios-plugins-mysql, nagios-plugins-nagios, nagios-plugins-nt, nagios-plugins-ntp, nagios-plugins-ntp-perl, nagios-plugins-nwstat, nagios-plugins-oracle, nagios-plugins-overcr, nagios-plugins-pgsql, nagios-plugins-ping, nagios-plugins-procs, nagios-plugins-game, nagios-plugins-real, nagios-plugins-rpc, nagios-plugins-smtp, nagios-plugins-snmp, nagios-plugins-ssh, nagios-plugins-swap, nagios-plugins-tcp, nagios-plugins-time, nagios-plugins-ups, nagios-plugins-users, nagios-plugins-wave, nagios-plugins-cluster
%ifnarch ppc ppc64 ppc64p7 sparc sparc64
Requires: nagios-plugins-sensors
%endif
%description all
This package provides all Nagios plugins.
%package apt
Summary: Nagios Plugin - check_apt
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description apt
Provides check_apt support for Nagios.
%package breeze
Summary: Nagios Plugin - check_breeze
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description breeze
Provides check_breeze support for Nagios.
%package by_ssh
Summary: Nagios Plugin - check_by_ssh
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/ssh
%description by_ssh
Provides check_by_ssh support for Nagios.
%package cluster
Summary: Nagios Plugin - check_cluster
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description cluster
Provides check_cluster support for Nagios.
%package dbi
Summary: Nagios Plugin - check_dbi
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description dbi
Provides check_dbi support for Nagios.
%package dhcp
Summary: Nagios Plugin - check_dhcp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: group(nagios)
Requires(pre): group(nagios)
%description dhcp
Provides check_dhcp support for Nagios.
%package dig
Summary: Nagios Plugin - check_dig
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/dig
%description dig
Provides check_dig support for Nagios.
%package disk
Summary: Nagios Plugin - check_disk
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description disk
Provides check_disk support for Nagios.
%package disk_smb
Summary: Nagios Plugin - check_disk_smb
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/smbclient
%description disk_smb
Provides check_disk_smb support for Nagios.
%package dns
Summary: Nagios Plugin - check_dns
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/nslookup
%description dns
Provides check_dns support for Nagios.
%package dummy
Summary: Nagios Plugin - check_dummy
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description dummy
Provides check_dummy support for Nagios.
This plugin does not actually check anything, simply provide it with a flag
0-4 and it will return the corresponding status code to Nagios.
%package file_age
Summary: Nagios Plugin - check_file_age
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description file_age
Provides check_file_age support for Nagios.
%package flexlm
Summary: Nagios Plugin - check_flexlm
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description flexlm
Provides check_flexlm support for Nagios.
%package fping
Summary: Nagios Plugin - check_fping
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_sbindir}/fping
Requires: group(nagios)
Requires(pre): group(nagios)
%description fping
Provides check_fping support for Nagios.
%package game
Summary: Nagios Plugin - check_game
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: qstat
%description game
Provides check_game support for Nagios.
%package hpjd
Summary: Nagios Plugin - check_hpjd
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description hpjd
Provides check_hpjd support for Nagios.
%package http
Summary: Nagios Plugin - check_http
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description http
Provides check_http support for Nagios.
%package icmp
Summary: Nagios Plugin - check_icmp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: group(nagios)
Requires(pre): group(nagios)
%description icmp
Provides check_icmp support for Nagios.
%package ide_smart
Summary: Nagios Plugin - check_ide_smart
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: group(nagios)
Requires(pre): group(nagios)
%description ide_smart
Provides check_ide_smart support for Nagios.
%package ifoperstatus
Summary: Nagios Plugin - check_ifoperstatus
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ifoperstatus
Provides check_ifoperstatus support for Nagios to monitor network interfaces.
%package ifstatus
Summary: Nagios Plugin - check_ifstatus
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ifstatus
Provides check_ifstatus support for Nagios to monitor network interfaces.
%package ircd
Summary: Nagios Plugin - check_ircd
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ircd
Provides check_ircd support for Nagios.
%package ldap
Summary: Nagios Plugin - check_ldap
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ldap
Provides check_ldap support for Nagios.
%package load
Summary: Nagios Plugin - check_load
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description load
Provides check_load support for Nagios.
%package log
Summary: Nagios Plugin - check_log
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: /bin/egrep
Requires: /bin/mktemp
%description log
Provides check_log support for Nagios.
%package mailq
Summary: Nagios Plugin - check_mailq
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/mailq
%description mailq
Provides check_mailq support for Nagios.
%package mrtg
Summary: Nagios Plugin - check_mrtg
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description mrtg
Provides check_mrtg support for Nagios.
%package mrtgtraf
Summary: Nagios Plugin - check_mrtgtraf
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description mrtgtraf
Provides check_mrtgtraf support for Nagios.
%package mysql
Summary: Nagios Plugin - check_mysql
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description mysql
Provides check_mysql and check_mysql_query support for Nagios.
%package nagios
Summary: Nagios Plugin - check_nagios
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description nagios
Provides check_nagios support for Nagios.
%package nt
Summary: Nagios Plugin - check_nt
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description nt
Provides check_nt support for Nagios.
%package ntp
Summary: Nagios Plugin - check_ntp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ntp
Provides check_ntp support for Nagios.
%package ntp-perl
Summary: Nagios Plugin - check_ntp.pl
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_sbindir}/ntpdate
Requires: %{_sbindir}/ntpq
%description ntp-perl
Provides check_ntp.pl support for Nagios.
%package nwstat
Summary: Nagios Plugin - check_nwstat
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description nwstat
Provides check_nwstat support for Nagios.
%package oracle
Summary: Nagios Plugin - check_oracle
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description oracle
Provides check_oracle support for Nagios.
%package overcr
Summary: Nagios Plugin - check_overcr
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description overcr
Provides check_overcr support for Nagios.
%package perl
Summary: Nagios plugins perl dep.
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description perl
Perl dep for nagios plugins. This is *NOT* an actual plugin it simply provides
utils.pm
%package pgsql
Summary: Nagios Plugin - check_pgsql
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description pgsql
Provides check_pgsql (PostgreSQL) support for Nagios.
%package ping
Summary: Nagios Plugin - check_ping
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: /bin/ping
Requires: /bin/ping6
%description ping
Provides check_ping support for Nagios.
%package procs
Summary: Nagios Plugin - check_procs
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description procs
Provides check_procs support for Nagios.
%package radius
Summary: Nagios Plugin - check_radius
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description radius
Provides check_radius support for Nagios.
%package real
Summary: Nagios Plugin - check_real
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description real
Provides check_real (rtsp) support for Nagios.
%package rpc
Summary: Nagios Plugin - check_rpc
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_sbindir}/rpcinfo
%description rpc
Provides check_rpc support for Nagios.
%ifnarch ppc ppc64 sparc sparc64
%package sensors
Summary: Nagios Plugin - check_sensors
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: /bin/egrep
Requires: %{_bindir}/sensors
%description sensors
Provides check_sensors support for Nagios.
%endif
%package smtp
Summary: Nagios Plugin - check_smtp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description smtp
Provides check_smtp support for Nagios.
%package snmp
Summary: Nagios Plugin - check_snmp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Requires: %{_bindir}/snmpgetnext
Requires: %{_bindir}/snmpget
%description snmp
Provides check_snmp support for Nagios.
%package ssh
Summary: Nagios Plugin - check_ssh
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ssh
Provides check_ssh support for Nagios.
%package swap
Summary: Nagios Plugin - check_swap
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description swap
Provides check_swap support for Nagios.
%package tcp
Summary: Nagios Plugin - check_tcp
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
Provides: nagios-plugins-ftp = %{version}-%{release}
Provides: nagios-plugins-imap = %{version}-%{release}
Provides: nagios-plugins-jabber = %{version}-%{release}
Provides: nagios-plugins-nntp = %{version}-%{release}
Provides: nagios-plugins-nntps = %{version}-%{release}
Provides: nagios-plugins-pop = %{version}-%{release}
Provides: nagios-plugins-simap = %{version}-%{release}
Provides: nagios-plugins-spop = %{version}-%{release}
Provides: nagios-plugins-ssmtp = %{version}-%{release}
Provides: nagios-plugins-udp = %{version}-%{release}
Provides: nagios-plugins-udp2 = %{version}-%{release}
Obsoletes: nagios-plugins-udp < 1.4.15-2
%description tcp
Provides check_tcp, check_ftp, check_imap, check_jabber, check_nntp,
check_nntps, check_pop, check_simap, check_spop, check_ssmtp, check_udp
and check_clamd support for Nagios.
%package time
Summary: Nagios Plugin - check_time
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description time
Provides check_time support for Nagios.
%package ups
Summary: Nagios Plugin - check_ups
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description ups
Provides check_ups support for Nagios.
%package uptime
Summary: Nagios Plugin - check_uptime
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description uptime
Provides check_uptime support for Nagios.
%package users
Summary: Nagios Plugin - check_users
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description users
Provides check_users support for Nagios.
%package wave
Summary: Nagios Plugin - check_wave
Group: Applications/System
Requires: nagios-plugins = %{version}-%{release}
%description wave
Provides check_wave support for Nagios.
%prep
%setup -q
%patch2 -p1 -b .not_parsed
#%patch5 -p1 -b .fix_missing_swap
%patch7 -p1 -b .ext_ntp_cmds
#%patch11 -p1 -b .fixes_for_release_201702
%build
%configure \
--libexecdir=%{_libdir}/nagios/plugins \
--with-dbi \
--with-mysql \
PATH_TO_QSTAT=%{_bindir}/quakestat \
PATH_TO_FPING=%{_sbindir}/fping \
PATH_TO_NTPQ=%{_sbindir}/ntpq \
PATH_TO_NTPDC=%{_sbindir}/ntpdc \
PATH_TO_NTPDATE=%{_sbindir}/ntpdate \
PATH_TO_RPCINFO=%{_sbindir}/rpcinfo \
--with-ps-command="`which ps` -eo 's uid pid ppid vsz rss pcpu etime comm args'" \
--with-ps-format='%s %d %d %d %d %d %f %s %s %n' \
--with-ps-cols=10 \
--enable-extra-opts \
--with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'
make %{?_smp_mflags}
cd plugins
make check_ide_smart
make check_ldap
make check_radius
make check_pgsql
cd ..
cp %{SOURCE1} ./README.Fedora
%install
sed -i 's,^MKINSTALLDIRS.*,MKINSTALLDIRS = ../mkinstalldirs,' po/Makefile
make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=%{buildroot} install
install -m 0755 plugins-root/check_icmp %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins-root/check_dhcp %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins/check_ide_smart %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins/check_ldap %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins-scripts/check_ntp.pl %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins/check_radius %{buildroot}/%{_libdir}/nagios/plugins
install -m 0755 plugins/check_pgsql %{buildroot}/%{_libdir}/nagios/plugins
%ifarch ppc ppc64 ppc64p7 sparc sparc64
rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_sensors
%endif
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
%find_lang %{name}
%files -f %{name}.lang
%doc ACKNOWLEDGEMENTS AUTHORS ChangeLog CODING COPYING FAQ LEGAL NEWS README REQUIREMENTS SUPPORT THANKS README.Fedora
%{_libdir}/nagios/plugins/negate
%{_libdir}/nagios/plugins/urlize
%{_libdir}/nagios/plugins/utils.sh
%files all
%files apt
%{_libdir}/nagios/plugins/check_apt
%files breeze
%{_libdir}/nagios/plugins/check_breeze
%files by_ssh
%{_libdir}/nagios/plugins/check_by_ssh
%files cluster
%{_libdir}/nagios/plugins/check_cluster
%files dbi
%{_libdir}/nagios/plugins/check_dbi
%files dhcp
%defattr(4750,root,nagios,-)
%{_libdir}/nagios/plugins/check_dhcp
%files dig
%{_libdir}/nagios/plugins/check_dig
%files disk
%{_libdir}/nagios/plugins/check_disk
%files disk_smb
%{_libdir}/nagios/plugins/check_disk_smb
%files dns
%{_libdir}/nagios/plugins/check_dns
%files dummy
%{_libdir}/nagios/plugins/check_dummy
%files file_age
%{_libdir}/nagios/plugins/check_file_age
%files flexlm
%{_libdir}/nagios/plugins/check_flexlm
%files fping
%defattr(4750,root,nagios,-)
%{_libdir}/nagios/plugins/check_fping
%files game
%{_libdir}/nagios/plugins/check_game
%files hpjd
%{_libdir}/nagios/plugins/check_hpjd
%files http
%{_libdir}/nagios/plugins/check_http
%files icmp
%defattr(4750,root,nagios,-)
%{_libdir}/nagios/plugins/check_icmp
%files ifoperstatus
%{_libdir}/nagios/plugins/check_ifoperstatus
%files ifstatus
%{_libdir}/nagios/plugins/check_ifstatus
%files ide_smart
%defattr(4750,root,nagios,-)
%{_libdir}/nagios/plugins/check_ide_smart
%files ircd
%{_libdir}/nagios/plugins/check_ircd
%files ldap
%{_libdir}/nagios/plugins/check_ldap
%{_libdir}/nagios/plugins/check_ldaps
%files load
%{_libdir}/nagios/plugins/check_load
%files log
%{_libdir}/nagios/plugins/check_log
%files mailq
%{_libdir}/nagios/plugins/check_mailq
%files mrtg
%{_libdir}/nagios/plugins/check_mrtg
%files mrtgtraf
%{_libdir}/nagios/plugins/check_mrtgtraf
%files mysql
%{_libdir}/nagios/plugins/check_mysql
%{_libdir}/nagios/plugins/check_mysql_query
%files nagios
%{_libdir}/nagios/plugins/check_nagios
%files nt
%{_libdir}/nagios/plugins/check_nt
%files ntp
%{_libdir}/nagios/plugins/check_ntp
%{_libdir}/nagios/plugins/check_ntp_peer
%{_libdir}/nagios/plugins/check_ntp_time
%files ntp-perl
%{_libdir}/nagios/plugins/check_ntp.pl
%files nwstat
%{_libdir}/nagios/plugins/check_nwstat
%files oracle
%{_libdir}/nagios/plugins/check_oracle
%files overcr
%{_libdir}/nagios/plugins/check_overcr
%files perl
%{_libdir}/nagios/plugins/utils.pm
%files pgsql
%{_libdir}/nagios/plugins/check_pgsql
%files ping
%{_libdir}/nagios/plugins/check_ping
%files procs
%{_libdir}/nagios/plugins/check_procs
%files radius
%{_libdir}/nagios/plugins/check_radius
%files real
%{_libdir}/nagios/plugins/check_real
%files rpc
%{_libdir}/nagios/plugins/check_rpc
%ifnarch ppc ppc64 ppc64p7 sparc sparc64
%files sensors
%{_libdir}/nagios/plugins/check_sensors
%endif
%files smtp
%{_libdir}/nagios/plugins/check_smtp
%files snmp
%{_libdir}/nagios/plugins/check_snmp
%files ssh
%{_libdir}/nagios/plugins/check_ssh
%files swap
%{_libdir}/nagios/plugins/check_swap
%files tcp
%{_libdir}/nagios/plugins/check_clamd
%{_libdir}/nagios/plugins/check_ftp
%{_libdir}/nagios/plugins/check_imap
%{_libdir}/nagios/plugins/check_jabber
%{_libdir}/nagios/plugins/check_nntp
%{_libdir}/nagios/plugins/check_nntps
%{_libdir}/nagios/plugins/check_pop
%{_libdir}/nagios/plugins/check_simap
%{_libdir}/nagios/plugins/check_spop
%{_libdir}/nagios/plugins/check_ssmtp
%{_libdir}/nagios/plugins/check_tcp
%{_libdir}/nagios/plugins/check_udp
%files time
%{_libdir}/nagios/plugins/check_time
%files ups
%{_libdir}/nagios/plugins/check_ups
%files uptime
%{_libdir}/nagios/plugins/check_uptime
%files users
%{_libdir}/nagios/plugins/check_users
%files wave
%{_libdir}/nagios/plugins/check_wave
%changelog
* Fri Jul 21 2017 Daniel Steiner <dsteiner@reehat.com>
- First own build

View File

@@ -0,0 +1,49 @@
Name: ngxtop
Version: 0.2.2
Release: 1%{?dist}
Summary: Real-time metrics for nginx server
Group: System/Monitoring
License: MIT
URL: https://github.com/lebinh/ngxtop
Source0: ngxtop-%{version}.tgz
%define debug_package %{nil}
%define pyvers 3
BuildRequires: python%{pyvers} python%{pyvers}-tabulate
Requires: python%{pyvers} python%{pyvers}-tabulate
%description
ngxtop tries to determine the correct location and format of nginx access log file by default,
so you can just run ngxtop and having a close look at all requests coming to your nginx server.
But it does not limit you to nginx and the default top view. ngxtop is flexible enough for you
to configure and change most of its behaviours. You can query for different things,
specify your log and format, even parse remote Apache common access log with ease.
%prep
%setup -q -n ngxtop
%build
#python%{pyvers} setup.py build
%py3_build
%install
#python%{pyvers} setup.py install --no-compile -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
%py3_install
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}
%files
%doc README.rst LICENSE.txt
%{_bindir}/%name
%python3_sitelib/%{name}
%python3_sitelib/%{name}*.egg-info
%changelog
* Sat Jan 26 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First release for Fedora 29

View File

@@ -0,0 +1,71 @@
#
# spec file for package noson-app
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: noson-app
Version: 4.4.3
Release: 1%{?dist}
Summary: SONOS device controller
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Players
URL: https://janbar.github.io/noson-app/index.html
Source0: https://github.com/janbar/noson-app/archive/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: flac-devel
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: pkgconfig
#BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5QuickControls2)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(noson) = 2.3.1
%description
A controller for SONOS devices. It allows for browsing the music
library, and playing tracks or radio on any zones. Zone groups,
queues and playlists can be managed, and playback be controlled.
%prep
%setup -q
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_DEPENDENCIES=OFF \
-DBUILD_LIBNOSON=OFF
%cmake_build
%install
%cmake_install
%files
%doc README.md
%license LICENSE
%{_bindir}/noson-app
%{_datadir}/applications/io.github.janbar.noson.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/metainfo/io.github.janbar.noson.appdata.xml
%{_libdir}/noson/
%changelog

View File

@@ -0,0 +1,84 @@
#
# spec file for package noson
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: noson
Version: 2.3.1
Release: 1%{?dist}
Summary: C++ library for accessing sonos devices
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/janbar/noson/
Source0: https://github.com/janbar/noson/archive/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: flac-devel
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: zlib-devel
%description
C++ library for accessing sonos devices
The API supports basic features to browse music index and control playback
in any zones.
%package -n libnoson2
Summary: C++ library for accessing sonos devices
Group: System/Libraries
%description -n libnoson2
C++ library for accessing sonos devices
The API supports basic features to browse music index and control playback
in any zones.
%package devel
Summary: Development files for noson library
Group: Development/Libraries/C and C++
Requires: libnoson2 = %{version}
%description devel
Development files for noson library. The noson library supports basic features
to browse music index and control playback in any zones.
%prep
%setup -q
%build
%cmake \
-DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir}
%cmake_build
%install
%cmake_install
%post -n libnoson2 -p /sbin/ldconfig
%postun -n libnoson2 -p /sbin/ldconfig
%files -n libnoson2
%license LICENSE
%doc README.md
%{_libdir}/libnoson.so.%{version}
%{_libdir}/libnoson.so.2
%files devel
%{_includedir}/noson
%{_libdir}/pkgconfig/noson.pc
%{_libdir}/cmake/noson/
%{_libdir}/libnoson.so
%changelog

View File

@@ -0,0 +1,149 @@
Name: percona-monitoring-plugins
Summary: Percona Monitoring Plugins are high-quality components to add enterprise-class MySQL monitoring and graphing capabilities to your existing on-premise monitoring solutions.
Group: Applications/Databases
Version: 1.1.7
Release: 1%{?dist}
Distribution: %{distro_description}
License: GPL
Source: percona-monitoring-plugins-%{version}.tar.gz
Patch0: percona-cacti.patch
URL: http://www.percona.com/software/percona-monitoring-plugins
Packager: Percona MySQL Development Team <mysqldev@percona.com>
Vendor: Percona
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: PyYAML
%if 0%{?rhel} > 6
BuildRequires: perl-Digest-MD5
%else
BuildRequires: perl-MD5
%endif
BuildRequires: perl-Time-HiRes
%description
Summary: Percona Monitoring Plugins are high-quality components to add enterprise-class MySQL monitoring and graphing capabilities to your existing on-premise monitoring solutions.
##############################################################################
# Sub package definition
##############################################################################
%package -n percona-cacti-templates
Summary: Percona Monitoring Plugins for Cacti
Group: Applications/Databases
License: GPL
Requires: cacti >= 0.8.6
%description -n percona-cacti-templates
The Percona Monitoring Plugins are high-quality components to add enterprise-
grade MySQL monitoring and graphing capabilities to your existing in-house,
on-premises monitoring solutions. The components are designed to integrate
seamlessly with widely deployed solutions such as Nagios, Cacti and Zabbix,
and are delivered in the form of templates, plugins, and scripts.
%package -n percona-nagios-plugins
Summary: Percona Monitoring Plugins for Nagios
Group: Applications/Databases
License: GPL
%description -n percona-nagios-plugins
The Percona Monitoring Plugins are high-quality components to add enterprise-
grade MySQL monitoring and graphing capabilities to your existing in-house,
on-premises monitoring solutions. The components are designed to integrate
seamlessly with widely deployed solutions such as Nagios, Cacti and Zabbix,
and are delivered in the form of templates, plugins, and scripts.
%package -n percona-zabbix-templates
Summary: Percona Monitoring Plugins for Zabbix
Group: Applications/Databases
License: GPL
%description -n percona-zabbix-templates
The Percona Monitoring Plugins are high-quality components to add enterprise-
grade MySQL monitoring and graphing capabilities to your existing in-house,
on-premises monitoring solutions. The components are designed to integrate
seamlessly with widely deployed solutions such as Nagios, Cacti and Zabbix,
and are delivered in the form of templates, plugins, and scripts.
##############################################################################
%prep
%setup -q
%patch0
%build
./make.sh nodocs
%install
#========ZABBIX========
install -m 0755 -d $RPM_BUILD_ROOT/var/lib/zabbix/percona/scripts
install -m 0755 -d $RPM_BUILD_ROOT/var/lib/zabbix/percona/templates
install -m 0755 release/%{name}-%{version}/zabbix/scripts/* $RPM_BUILD_ROOT/var/lib/zabbix/percona/scripts
install -m 0644 release/%{name}-%{version}/zabbix/templates/* $RPM_BUILD_ROOT/var/lib/zabbix/percona/templates
#======================
#========NAGIOS========
install -m 0755 -d $RPM_BUILD_ROOT%{_libdir}/nagios/plugins
install -m 0755 release/%{name}-%{version}/nagios/bin/pmp-* $RPM_BUILD_ROOT%{_libdir}/nagios/plugins
#======================
#========CACTI=========
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/bin
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/definitions
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/misc
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/templates
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/cacti/scripts
install -m 0755 release/%{name}-%{version}/cacti/bin/* $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/bin
install -m 0644 release/%{name}-%{version}/cacti/definitions/* $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/definitions
install -m 0644 release/%{name}-%{version}/cacti/misc/* $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/misc
install -m 0644 release/%{name}-%{version}/cacti/templates/* $RPM_BUILD_ROOT/usr/share/cacti/resource/percona/templates
install -m 0644 release/%{name}-%{version}/cacti/scripts/*.php $RPM_BUILD_ROOT/usr/share/cacti/scripts
install -m 0755 release/%{name}-%{version}/cacti/scripts/*.py $RPM_BUILD_ROOT/usr/share/cacti/scripts
#======================
# exit 0 disables running helpers which generates *.pyc, *.pyo files.
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
%post -n percona-zabbix-templates
echo
echo "Scripts are installed to /var/lib/zabbix/percona/scripts"
echo "Templates are installed to /var/lib/zabbix/percona/templates"
%files -n percona-zabbix-templates
%dir /var/lib/zabbix/percona
/var/lib/zabbix/percona/*
%post -n percona-nagios-plugins
echo
echo "Plugins are installed to %{_libdir}/nagios/plugins"
%files -n percona-nagios-plugins
%{_libdir}/nagios/plugins/*
%post -n percona-cacti-templates
echo
echo "Scripts are installed to /usr/share/cacti/scripts"
echo "Templates are installed to /usr/share/cacti/resource/percona"
%files -n percona-cacti-templates
%dir /usr/share/cacti/resource/percona
/usr/share/cacti/resource/percona/*
/usr/share/cacti/scripts/*
%changelog
* Thu Dec 1 2016 <evgeniy.patlan@percona.com> 1.1.7
- Initial Package

View File

@@ -0,0 +1,278 @@
%global git_short_version_hash b2ab18f8f3
%global git_full_version_hash b2ab18f8f3d0cbab55b92da7a5fcbc0e148a4c99
Summary: An open software engineering platform
Name: phabricator
Version: 0.git%{git_short_version_hash}
Release: 1%{?dist}
License: ASL 2.0
Group: Applications/Productivity
URL: http://www.phabricator.org/
Source0: https://github.com/phacility/%{name}/archive/%{git_full_version_hash}.tar.gz#/%{name}-%{git_full_version_hash}.tar.gz
Source1: aphlict.service
Source2: phd.service
Source3: sshd-phab.service
Source4: phabricator.tmpfiles.conf
Source5: sshd_config_phab
Source6: phabricator.sysconfig
Source7: aphlict.config.json
Source8: phabricator.config.json
Source9: httpd-phabricator.conf
Source998: README.fedora
Source999: README.rhel
Patch1: 0001-No-matching-commits-to-users-on-displayname.patch
Requires: arcanist
Requires: git-core
Requires: httpd
Requires: nodejs
Requires: nodejs-ws
Requires: php(language) >= 5
Requires: php-curl
Requires: php-iconv
Requires: php-pecl-mailparse
Requires: python3-pygments
Requires: sudo
Requires(post): systemd-units
Requires(postun): systemd-units
Requires(preun): coreutils
Requires(preun): systemd-units
BuildRequires: systemd
BuildArch: noarch
%description
Phabricator is a collection of open source web applications that help
software companies build better software.
%prep
%setup -q -n %{name}-%{git_full_version_hash}
# Shipping is sorted in %files
cp -a %{SOURCE998} .
cp -a %{SOURCE999} .
# externals that do not seem to be used at all
rm -rf \
externals/httpful/ \
externals/restful/
%patch1 -p1
grep -rlE '/usr/local/bin|bin/env' . | xargs sed -i -e ' 1 {
s,/usr/local/bin/php,%{_bindir}/php,
s,/usr/bin/env .*php,%{_bindir}/php,
}'
sed -r -i \
-e 's|/var/log/aphlict.log|/var/log/%{name}/aphlict.log|g' \
-e 's|/var/tmp/aphlict/pid/aphlict.pid|/var/run/%{name}/aphlict.pid|g' \
conf/aphlict/aphlict.default.json
%build
# Nothing to do here
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_libexecdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}/
install -d %{buildroot}%{_sysconfdir}/ssh/
install -d %{buildroot}%{_sysconfdir}/sysconfig/
install -d %{buildroot}%{_sysconfdir}/tmpfiles.d/
install -d %{buildroot}%{_var}/lib/%{name}
install -d %{buildroot}%{_var}/lib/%{name}/files
install -d %{buildroot}%{_var}/lib/%{name}/repos
install -d %{buildroot}%{_var}/log/%{name}
install -d %{buildroot}%{_unitdir}
cp -a \
bin/ \
conf/ \
externals/ \
resources/ \
scripts/ \
src/ \
support/ \
webroot/ \
%{buildroot}%{_datadir}/%{name}/.
# Hidden and zero-length, but needed in git / sources
rm -rf %{buildroot}%{_datadir}/%{name}/conf/keys/.keep
mv \
%{buildroot}%{_datadir}/%{name}/resources/sshd/phabricator-ssh-hook.sh \
%{buildroot}%{_libexecdir}/%{name}/ssh-hook
chmod a+x %{buildroot}%{_libexecdir}/%{name}/ssh-hook
sed -r -i \
-e 's|^VCSUSER=.*$|VCSUSER="git"|g' \
-e 's|^ROOT=.*$|ROOT="/usr/share/%{name}"|g' \
%{buildroot}%{_libexecdir}/%{name}/ssh-hook
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/aphlict.service
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/phd.service
install -p -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/sshd-phab.service
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/ssh/sshd_config_phab
install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -D -p -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/httpd/vhosts.d/%{name}.conf
pushd %{buildroot}%{_datadir}/%{name}/conf/aphlict/
mv aphlict.default.json ../../../../..%{_sysconfdir}/%{name}/aphlict.config.json
ln -s ../../../../..%{_sysconfdir}/%{name}/aphlict.config.json aphlict.default.json
popd
install -p -m 640 %{SOURCE7} %{buildroot}%{_sysconfdir}/%{name}/aphlict.config.json
pushd %{buildroot}%{_datadir}/%{name}/conf/local/
ln -s ../../../../..%{_sysconfdir}/%{name}/%{name}.config.json local.json
popd
install -p -m 640 %{SOURCE8} %{buildroot}%{_sysconfdir}/%{name}/%{name}.config.json
##install -d %{buildroot}%{_sysconfdir}/sudoers.d/
# Very probably not allowed
##cat > %{buildroot}%{_sysconfdir}/sudoers.d/apache << EOF
##apache ALL=(phabricator) SETENV: NOPASSWD: /usr/libexec/git-core/git-http-backend
##EOF
# Very probably not allowed
##cat > %{buildroot}%{_sysconfdir}/sudoers.d/git << EOF
##git ALL=(phabricator) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack
##EOF
%clean
rm -rf %{buildroot}
%pretrans
if [ -f %{_datadir}/%{name}/conf/local/local.json ]; then
if [ ! -L %{_datadir}/%{name}/conf/local/local.json ]; then
mkdir -p %{_sysconfdir}/%{name}
chown phabricator:apache %{_sysconfdir}/%{name}
chmod 750 %{_sysconfdir}/%{name}
mv %{_datadir}/%{name}/conf/local/local.json \
%{_sysconfdir}/%{name}/%{name}.config.json
chmod 640 %{_sysconfdir}/%{name}/%{name}.config.json
chown phabricator:apache %{_sysconfdir}/%{name}/%{name}.config.json
ln -s ../../../../..%{_sysconfdir}/%{name}/%{name}.config.json \
%{_datadir}/%{name}/conf/local/local.json
fi
fi
if [ -f %{_datadir}/%{name}/conf/aphlict/aphlict.default.json ]; then
if [ ! -L %{_datadir}/%{name}/conf/aphlict/aphlict.default.json ]; then
mkdir -p %{_sysconfdir}/%{name}
chown phabricator:apache %{_sysconfdir}/%{name}
chmod 750 %{_sysconfdir}/%{name}
mv %{_datadir}/%{name}/conf/aphlict/aphlict.default.json \
%{_sysconfdir}/%{name}/aphlict.config.json
chmod 640 %{_sysconfdir}/%{name}/aphlict.config.json
chown phabricator:apache %{_sysconfdir}/%{name}/aphlict.config.json
ln -s ../../../../..%{_sysconfdir}/%{name}/aphlict.config.json \
%{_sysconfdir}/%{name}/aphlict.config.json
fi
fi
%pre
getent group phabricator >/dev/null || \
groupadd -r phabricator >/dev/null 2>&1 || :
getent passwd phabricator >/dev/null || \
useradd -r -g phabricator -d /var/lib/phabricator -s /sbin/nologin \
-c "Phabricator Service User" phabricator >/dev/null 2>&1 || :
# Very probably inappropriate
#getent passwd git >/dev/null || \
# useradd -r -d "/var/lib/git" -s /bin/bash \
# -c "Git Service User" git >/dev/null 2>&1 || :
#
#passwd -d git >/dev/null 2>&1 || :
#passwd -uf git >/dev/null 2>&1 || :
# Not possible without the former segment
#getent group phabricator | grep -q git || \
# gpasswd -a git phabricator >/dev/null 2>&1 || :
# Necessary for apache and phabricator to both have access to git repositories
getent group phabricator | grep -q apache || \
gpasswd -a apache phabricator >/dev/null 2>&1 || :
# Only execute on upgrade, not install/uninstall
if [ $1 -gt 1 -a -f /etc/sysconfig/%{name} ]; then
. /etc/sysconfig/%{name} || exit 0
if [ "${AUTO_DUMP_STORAGE}" == "1" ]; then
%{_datadir}/%{name}/bin/storage dump | \
gzip -c > %{_var}/lib/%{name}/pre-%{version}-%{release}.sql.gz || :
fi
fi
%post
# Very probably not allowed
#sed -i -e '/requiretty/d' /etc/sudoers >/dev/null 2>&1 || :
%systemd_post httpd.service
%systemd_post aphlict.service
%systemd_post phd.service
# Only execute on upgrade
if [ $1 -gt 1 -a -f /etc/sysconfig/%{name} ]; then
. /etc/sysconfig/%{name} || exit 0
if [ "${AUTO_UPGRADE_STORAGE}" == "1" ]; then
%{_datadir}/%{name}/bin/storage upgrade --force > \
%{_var}/log/%{name}/upgrade-%{version}-%{release}.log 2>&1 || :
fi
fi
%preun
%systemd_preun httpd.service
%systemd_preun aphlict.service
%systemd_preun phd.service
%postun
%systemd_postun_with_restart httpd.service
%systemd_postun_with_restart aphlict.service
%systemd_postun_with_restart phd.service
%files
%{!?_licensedir:%global license %doc}
%license LICENSE
%if 0%{?fedora}
%doc README.fedora
%else
%doc README.rhel
%endif
%doc README.md
%doc NOTICE
%{_datadir}/%{name}
%{_libexecdir}/%{name}
#%%config(noreplace) %{_sysconfdir}/sudoers.d/apache
#%%config(noreplace) %{_sysconfdir}/sudoers.d/git
%attr(0755, phabricator, apache) %dir %{_sysconfdir}/%{name}/
%config(noreplace) %attr(0644, phabricator, apache) %{_sysconfdir}/%{name}/aphlict.config.json
%config(noreplace) %attr(0644, phabricator, apache) %{_sysconfdir}/%{name}/%{name}.config.json
%config(noreplace) %{_sysconfdir}/ssh/sshd_config_phab
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/httpd/vhosts.d/%{name}.conf
%{_sysconfdir}/tmpfiles.d/%{name}.conf
%{_unitdir}/aphlict.service
%{_unitdir}/phd.service
%{_unitdir}/sshd-phab.service
%attr(0775, phabricator, phabricator) %{_var}/lib/%{name}
%attr(0775, phabricator, phabricator) %{_var}/log/%{name}
%changelog
* Sun Dec 20 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build for Fedora 33.

View File

@@ -0,0 +1,191 @@
%define gitversion git.ff7cd69
Name: pnp4nagios
Version: 0.6.27
Release: 2.%{gitversion}%{?dist}
Summary: Nagios performance data analysis tool
Group: Applications/System
License: GPLv2
URL: http://www.pnp4nagios.org/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: pnp4nagios.logrotate.conf
Source2: pnp4nagios-npcd.sysvinit
Source3: pnp4nagios-README.fedora
Patch1: pnp4nagios-httpd24.patch
Patch2: pnp4nagios-pnp-helper.patch
Patch3: pnp4nagios-fpdi.patch
Patch4: pnp4nagios_kohana_magic_quotes.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# this package requires icinga2 instead of nagios!
%define user icinga
%define grp icinga
BuildRequires: autoconf, automake, libtool
BuildRequires: rrdtool-perl
BuildRequires: perl(Time::HiRes)
# this package requires icinga2 instead of nagios!
Requires: icinga2
Requires: rrdtool-perl
Requires: php-gd
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
# otherwise not installable:
Provides: /bin/perl
%description
PNP is an addon to nagios which analyzes performance data provided by plugins
and stores them automatically into RRD-databases.
%prep
%setup -q
#%patch1 -p1
#%patch2 -p0
#%patch3 -p0
%patch4 -p0
autoreconf
cp -p %{SOURCE3} README.fedora
sed -i -e 's/^INSTALL_OPTS="-o $nagios_user -g $nagios_grp"/INSTALL_OPTS=""/' \
configure
sed -i -e '/^\t$(MAKE) strip-post-install$/d' src/Makefile.in
%build
%configure --bindir=%{_sbindir} \
--libexecdir=%{_libexecdir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
--localstatedir=%{_localstatedir}/log/%{name} \
--datadir=%{_datadir}/nagios/html/%{name} \
--datarootdir=%{_datadir}/nagios/html/%{name} \
--with-perfdata-dir=%{_localstatedir}/lib/%{name} \
--with-perfdata-spool-dir=%{_localstatedir}/spool/%{name}
make %{?_smp_mflags} all
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
make install-config DESTDIR=$RPM_BUILD_ROOT
# remove -sample from filename suffix
for i in $RPM_BUILD_ROOT/%{_sysconfdir}/pnp4nagios/*-sample \
$RPM_BUILD_ROOT/%{_sysconfdir}/pnp4nagios/*/*-sample
do
mv ${i} ${i%%-sample}
done
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.php.*
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config_local.php
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name}
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/pnp4nagios
install -Dp -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/npcd
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
sed 's|/usr/local/nagios/etc/htpasswd.users|/etc/nagios/passwd|' \
sample-config/httpd.conf \
> $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf
mkdir -p $RPM_BUILD_ROOT%{_libdir}/nagios/brokers
mv $RPM_BUILD_ROOT%{_libdir}/npcdmod.o \
$RPM_BUILD_ROOT%{_libdir}/nagios/brokers/npcdmod.o
mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_datadir}/
# Move kohana to pnp4nagios, there is another kohana in fedore/EPEL,
# which can be installed.
mv $RPM_BUILD_ROOT%{_libdir}/kohana \
$RPM_BUILD_ROOT%{_datadir}/nagios/html/%{name}/kohana
sed -i 's|%{_libdir}/kohana|%{_datadir}/nagios/html/%{name}/kohana|' \
$RPM_BUILD_ROOT%{_datadir}/nagios/html/%{name}/index.php
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add npcd
%preun
if [ $1 = 0 ]; then
/sbin/service npcd stop >/dev/null 2>&1
/sbin/chkconfig --del npcd
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service npcd condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING INSTALL README README.fedora
%doc THANKS contrib
%dir %{_sysconfdir}/%{name}
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/misccommands.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/nagios.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/npcd.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/process_perfdata.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/rra.cfg
%{_sysconfdir}/%{name}/*.php
%{_sysconfdir}/%{name}/*.pdf
%{_sysconfdir}/%{name}/%{name}_release
%dir %{_sysconfdir}/%{name}/check_commands
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/check_commands/check_all_local_disks.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/check_commands/check_nrpe.cfg
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/check_commands/check_nwstat.cfg
%dir %{_sysconfdir}/%{name}/config.d
%dir %{_sysconfdir}/%{name}/pages
%config(noreplace) %attr(0640,root,%{grp}) %{_sysconfdir}/%{name}/pages/web_traffic.cfg
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%attr(755,root,root) %{_initrddir}/npcd
%attr(755,root,root) %{_sbindir}/npcd
%{_libdir}/nagios/brokers/npcdmod.o
%dir %{_libexecdir}/%{name}
%attr(755,root,root) %{_libexecdir}/%{name}/*
%attr(755,%{user},%{grp}) %{_localstatedir}/lib/%{name}
%attr(755,%{user},%{grp}) %{_localstatedir}/log/%{name}
%attr(755,%{user},%{grp}) %{_localstatedir}/spool/%{name}
# Remove install check script
# as it is not required if all dependencies are met.
%exclude %{_datadir}/nagios/html/%{name}/install.php
%{_mandir}/man8/*
# This is a different version of Kohana like in Fedora/EPEL.
# Needed for pnp4nagios web interface to work.
%{_datadir}/nagios/html/%{name}
%changelog
* Fri May 21 2021 Daniel Steiner <dsteiner@redhat.com> - 0.6.27-2-gitff7cd69
- Build for Fedora 34.
* Sat Oct 31 2020 Daniel Steiner <dsteiner@redhat.com> - 0.6.27-2-gitff7cd69
- Build for Fedora 33.
* Fri Aug 7 2018 Daniel Steiner <dsteiner@redhat.com> - 0.6.27-2-gitff7cd69
- Patch for Kohana magic_quotes problem.
* Thu Dec 20 2018 Daniel Steiner <dsteiner@redhat.com> - 0.6.27-1-gitff7cd69
- Upgrade to git master version ff7cd69.
* Sat Oct 6 2018 Daniel Steiner <dsteiner@redhat.com> - 0.6.26-2
- FPDI pdf generation patch added, this was required for php 7.2!
* Sun Jun 3 2018 Daniel Steiner <dsteiner@redhat.com> - 0.6.26-1
- Build for Fedora 28.
* Sat Sep 2 2017 Daniel Steiner <dsteiner@redhat.com> - 0.6.26-1
- Update to new release 0.6.26.
* Sat Jul 22 2017 Daniel Steiner <dsteiner@redhat.com> - 0.6.25-6
- Package requires now icinga2 instead of nagios. User/group changed to icinga
* Sat Jul 22 2017 Daniel Steiner <dsteiner@redhat.com> - 0.6.25-5
- PHP error fixed in pnp.php helper module
* Tue Jul 11 2017 Daniel Steiner <dsteiner@redhat.com> - 0.6.25-4
- Rebuilt for Fedora 25

View File

@@ -0,0 +1,215 @@
# Attention: Before you can build this package, you must install venvctrl package through pip:
# pip install venvctrl
# Globals
%global __os_install_post %{nil}
# prevents the building of /usr/lib/.build-id directories and files:
# this only happens, if you are using python virtualenv
%global _build_id_links none
# don't check for rpath:
%global __arch_install_post /usr/lib/rpm/check-buildroot
# Macros
%define pyversion 3.10
%define name polemarch
%define shortname polemarch
%define namebase polemarch
%define user polemarch
%define datad poledata
%define version 1.8.5
%define release 1
%define __prelink_undo_cmd %{nil}
%define _binaries_in_noarch_packages_terminate_build 0
%define unmangled_version %{version}
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Summary: Infrastructure Heat Service for orchestration infrastructure by ansible.
Group: Application/System
Vendor: VST Consulting <sergey.k@vstconsulting.net>
License: AGPL-3+
AutoReq: No
AutoProv: No
# compiled binary tree:
Source0: %name-bin-%{version}.tar.gz
Source1: %name-settings
Source2: %name.service
Source3: %name.tmpfiles.conf
# Note: these two packages must not be installed by distribution (fedora): python3-pyyaml, python3-blockdiag-devel
# Build fails, if these two packages are installed!
Requires: python3, openssl-devel, libxcrypt-compat
Requires: python3-virtualenv, python3-mysql, python3-PyMySQL
Requires: git
Requires: libyaml-devel
Requires: krb5-devel, krb5-libs, openldap-devel
Requires: mailcap
Requires: python3-redis >= 3.2.0, python3-django-redis >= 4.0.0, redis >= 5.0.0
Requires: python3-gitdb, python3-GitPython
Requires: python3-amqp, python3-vine, python3-billiard, python3-celery, python3-kombu
Requires: python3-redis, python3-Cython, python3-django-timezone-field, python3-markdown2
Requires: python3-netaddr, python3-ldap, python3-smmap
%description
Polemarch is service for orchestration infrastructure by ansible.
Simply WEB gui for orchestration infrastructure by ansible playbooks.
%prep
%install
#/usr/bin/make BUILD_DIR=%{buildroot}
# Install binary package (compiling does not work here! You need to compile it first!)
# cd BUILD/polemarch-1.7.3
# /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix ~/rpmbuild/SOURCES/venvctrl-patch --fuzz=0
# /usr/bin/make BUILD_DIR=/root/rpmbuild/BUILDROOT/polemarch
# cd /root/rpmbuild/BUILDROOT/polemarch
# tar czf ~/rpmbuild/SOURCES/polemarch-bin-1.7.3.tgz .
# don't forget to replace version and release number!
tar xzf %{S:0} -C %{buildroot}
install -D %{S:1} %{buildroot}%{_sysconfdir}/%{namebase}/settings.ini
install -D %{S:1} %{buildroot}%{_sysconfdir}/%{namebase}/settings.ini.template
# fix for fedora rundir config:
install -d %{buildroot}/run/%name
install -D %{S:2} %{buildroot}%{_systemd_util_dir}/system/%{name}.service
install -d %{buildroot}%{_var}/lock/%{name}
install -D %{S:3} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
# create additional directories:
install -d %{buildroot}/%{_var}/log/%{name}
install -d %{buildroot}/opt/%{datad}
ln -s %{python3_sitearch}/MySQLdb %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/MySQLdb
ln -s %{python3_sitelib}/pymysql %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/pymysql
# remove compiled git python package, which are not working on Fedora 32 and pyton3.8
rm -rf %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/git
ln -s %{python3_sitelib}/git %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/git
rm -rf %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/gitdb
ln -s %{python3_sitelib}/gitdb %{buildroot}/opt/polemarch/lib/python%{pyversion}/site-packages/gitdb
# remove buildroot path in opt/polemarch/bin/activate.xsh:
sed -i -e 's|/root/rpmbuild/BUILDROOT/polemarch.*x86_64||' %{buildroot}/opt/polemarch/bin/activate.csh
# remove .gitignore file:
rm -f %{buildroot}/opt/polemarch/.gitignore
%pre
getent group %{user} >/dev/null || \
groupadd -r %{user}
getent passwd %{user} >/dev/null || \
useradd -r -g %{user} -d /opt/%{user} \
-s /sbin/nologin -c "%{user} user" %{user}
exit 0
%post
%systemd_post %{name}.service
sudo -u %{user} /opt/%{name}/bin/%{shortname}ctl migrate
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%defattr(-,%{user},%{user},-)
%dir %attr(-,%{user},%{user}) /opt/%{namebase}
%dir %attr(-,%{user},%{user}) /opt/%{datad}
%dir %attr(-,%{user},%{user}) %{_var}/log/%{namebase}
%attr(-,%{user},%{user}) /opt/%{namebase}/bin/*
%attr(-,%{user},%{user}) /opt/%{namebase}/lib/*
/opt/%{namebase}/lib64
/opt/%{namebase}/*.cfg
%dir %{_sysconfdir}/%{namebase}
%{_rundir}/%{namebase}
%{_var}/lock/%{namebase}
%attr(755,%{user},%{user}) %{_systemd_util_dir}/system/%{name}.service
%attr(755,root,root) %{_sysconfdir}/tmpfiles.d/%{namebase}.conf
%config(noreplace) %{_sysconfdir}/%{namebase}/settings.ini
%config(noreplace) %{_sysconfdir}/%{namebase}/settings.ini.template
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%changelog
* Fri 18 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.8.5 version. Built for Fedora 35.
* Sun Jan 2 2022 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.8.5 version.
* Fri May 21 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First build on Fedora 34.
* Fri Apr 9 2021 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.8.2 version.
* Sat Oct 31 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.8.1 version, first build on Fedora 33 and python 3.9.
* Fri Aug 14 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.8.0 version.
* Mon May 18 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Build dependencies added (nodejs and yarn).
* Fri May 15 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.7.6 version.
* Sun May 3 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Fixes for Fedora 32 installation. Git and gitdb packages are now symlinked.
* Fri Jan 17 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.6.2 version.
* Mon Dec 30 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.6.1 version.
* Sun Dec 15 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.6.0 version.
* Fri Dec 6 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.5.1 version.
* Sat Nov 9 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Changes for Fedora 31.
- mysqlcient symlink added.
* Sat Sep 21 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.4.4 version.
* Sun Sep 15 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.4.3 version.
* Fri Aug 16 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.4.1 version.
* Sat Jul 13 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.3.1 version.
* Sun Jun 16 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.2.1 version.
* Mon Jun 10 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.2.0 version, python 3 is required now.
* Sun May 12 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Dependency for libxcrypt-compat added.
* Fri May 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Workaround for mysql DB version failure.
* Sun Apr 28 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to latest 1.1.4 version.
* Fri Mar 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to latest 1.1.3 version.
* Fri Mar 8 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Do migrate alltimes postinstall script.
- Upgrade to latest 1.1.2 version.
- redis-py patch for version 3.2.0 which is required but not resolved.
* Fri Feb 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Some fixes for post script.
* Fri Feb 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First setup for Fedora 29

View File

@@ -0,0 +1,57 @@
Name: powerline-go
Version: 1.22.1
Release: 1%{?dist}
Summary: A Powerline style prompt for your shell
%define debug_package %{nil}
License: MIT
URL: https://github.com/justjanne/powerline-go
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.conf
BuildRequires: golang >= 1.8
%if 0%{?rhel} >= 8
%else
BuildRequires: go-bindata
%endif
Requires: git
# Temporary solution while waiting for golang and go-bindata to be built in cbs.centos.org
ExclusiveArch: i686 x86_64
%description
A Powerline style prompt for your shell
%prep
%setup -q -n %name-%version
%build
go build
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datarootdir}/doc/%{name}
install %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
install %{S:1} $RPM_BUILD_ROOT/%{_datarootdir}/doc/%{name}/%{name}.conf
%files
%doc LICENSE.md README.md
%doc %{_datarootdir}/doc/%{name}/%{name}.conf
%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Apr 22 2022 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to 1.22.1 version.
* Fri May 21 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 34.
* Sun Mar 7 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Initial version.

View File

@@ -0,0 +1,74 @@
Name: powerline_shell
Version: 0.7.0
Release: 3%{?dist}
Summary: A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh
License: MIT
URL: https://dev.daniel-steiner.org/dani/powerline-shell-enhanced#segment-configuration
Source0: powerline_shell.tar.gz
%define debug_package %{nil}
%define pyvers 3
BuildRequires: python%{pyvers} powerline
BuildRequires: python%{pyvers}-GitPython
BuildRequires: python%{pyvers}-setuptools
Requires: python%{pyvers} powerline bash
Requires: python%{pyvers}-GitPython
Requires: python%{pyvers}-argparse
Requires: python%{pyvers}-setuptools
%description
A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh:
* Shows some important details about the git/svn/hg/fossil branch (see below)
* Changes color if the last command exited with a failure code
* If youre too deep into a directory tree, shortens the displayed path with an ellipsis
* Shows the current Python virtualenv environment
* Its easy to customize and extend. See below for details.
The generated prompts are designed to resemble powerline, but otherwise this project has no relation to powerline.
%prep
%setup -q -n %{name}
%build
#python%{pyvers} setup.py build
%py3_build
%install
#python%{pyvers} setup.py install --no-compile -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
%py3_install
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%doc CHANGELOG.md README.md LICENSE
%{_bindir}/powerline-shell
%{python3_sitelib}/%{name}/*.py
%{python3_sitelib}/%{name}/__pycache__/*.pyc
%{python3_sitelib}/%{name}/segments/*.py
%{python3_sitelib}/%{name}/segments/__pycache__/*.pyc
%{python3_sitelib}/%{name}/themes/*.py
%{python3_sitelib}/%{name}/themes/__pycache__/*.pyc
%{python3_sitelib}/%{name}*.egg-info/*
%changelog
* Fri May 21 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Built for Fedora 34.
* Sat Oct 31 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Built for Fedora 33.
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Dependency added for pythonX-setuptools rpm.
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Dependency added for pythonX-argparse rpm.
* Sat Feb 2 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build.

View File

@@ -0,0 +1,130 @@
%global proj_version 6.3.0
%global datumgrid_version 1.8
%define realname proj
# Prefix is /usr/local!
%define _prefix /usr/local
%define _includedir %{_prefix}/include
%define _datadir %{_prefix}/share
%define _bindir %{_prefix}/bin
%define _libdir %{_prefix}/lib64
%define _mandir %{_datadir}/man
Name: proj6
Version: %{proj_version}
Release: 1%{?dist}
Summary: Cartographic projection software (PROJ.4)
License: MIT
URL: https://proj4.org
Source0: https://download.osgeo.org/%{realname}/%{realname}-%{version}.tar.gz
BuildRequires: libtool gcc-c++
%description
Proj and invproj perform respective forward and inverse transformation of
cartographic data to or from cartesian data with a wide range of selectable
projection functions.
%package devel
Summary: Development files for PROJ.4
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libproj and the appropriate header files and man pages.
%package static
Summary: Development files for PROJ.4
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
This package contains libproj static library.
%prep
%setup -q -n %{realname}-%{version}
%build
# rebuild due to patch
autoreconf -i
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--datarootdir=%{_datadir}
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 DESTDIR=%{buildroot}
chmod -x %{buildroot}%{_libdir}/libproj.la
# Install cmake config manually because we use autotools for building
mkdir -p %{buildroot}%{_datadir}/cmake/Modules/
cat << EOF > %{buildroot}%{_datadir}/cmake/Modules/FindPROJ4.cmake
set(PROJ4_FOUND 1)
set(PROJ4_INCLUDE_DIRS %{_includedir})
set(PROJ4_LIBRARIES proj)
if(\${LIB_SUFFIX} MATCHES 64)
set(PROJ4_LIBRARY_DIRS %{_libdir})
else()
set(PROJ4_LIBRARY_DIRS %{_prefix}/lib)
endif()
set(PROJ4_BINARY_DIRS %{_bindir})
set(PROJ4_VERSION %{proj_version})
message(STATUS "Found PROJ4: version \${PROJ4_VERSION}")
EOF
%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
make PROJ_LIB=%{buildroot}%{_datadir}/%{realname} check || ( cat src/test-suite.log; exit 1 )
%files
%doc NEWS AUTHORS COPYING README ChangeLog
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_libdir}/libproj.so.15*
%dir %{_datadir}/%{realname}
%{_datadir}/%{realname}/CH
%{_datadir}/%{realname}/GL27
%{_datadir}/%{realname}/ITRF2000
%{_datadir}/%{realname}/ITRF2008
%{_datadir}/%{realname}/ITRF2014
%{_datadir}/%{realname}/nad.lst
%{_datadir}/%{realname}/nad27
%{_datadir}/%{realname}/nad83
%{_datadir}/%{realname}/null
%{_datadir}/%{realname}/other.extra
%{_datadir}/%{realname}/world
%{_datadir}/%{realname}/projjson.schema.json
%{_datadir}/%{realname}/%{realname}.db
%files devel
%{_mandir}/man3/*.3*
%{_includedir}/*.h
%{_includedir}/%{realname}/*.hpp
%{_libdir}/libproj.so
%{_libdir}/pkgconfig/%{realname}.pc
%{_datadir}/cmake/Modules/FindPROJ4.cmake
%exclude %{_libdir}/libproj.a
%exclude %{_libdir}/libproj.la
%files static
%{_libdir}/libproj.a
%{_libdir}/libproj.la
%changelog
* Sat Jan 11 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- New name proj6 and relocation to /usr/local.
* Mon Jan 6 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial build

View File

@@ -0,0 +1,96 @@
%global pypi_name PyMySQL
Name: python-%{pypi_name}
Version: 0.9.3
Release: 1%{?dist}
Summary: Pure-Python MySQL client library
License: MIT
URL: https://pypi.python.org/pypi/%{pypi_name}/
Source0: https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz
BuildArch: noarch
# for python2
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-cryptography
# for python3
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-cryptography
%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 python2-%{pypi_name}
Summary: Pure-Python MySQL client library
Requires: python2-cryptography
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
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 python%{python3_pkgversion}-%{pypi_name}
Summary: Pure-Python MySQL client library
Requires: python%{python3_pkgversion}-cryptography
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
%description -n python%{python3_pkgversion}-%{pypi_name}
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.
%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
# Remove tests files so they are not installed globally.
rm -rf tests
%build
%py2_build
%py3_build
%install
%py2_install
# Remove shebang
#for lib in %{buildroot}%{python2_sitelib}/pymysql/tests/thirdparty/test_MySQLdb/*.py; do
# sed -i '1{\@^#!/usr/bin/env python@d}' $lib
#done
%py3_install
# Remove shebang
#for lib in %{buildroot}%{python3_sitelib}/pymysql/tests/thirdparty/test_MySQLdb/*.py; do
# sed -i '1{\@^#!/usr/bin/env python@d}' $lib
#done
%check
# Tests cannot be launch on koji, they require a mysqldb running.
%files -n python2-%{pypi_name}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/pymysql/
%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/pymysql/
%changelog
* Sun Apr 28 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial relase for fedora 29 (0.9.3).

View File

@@ -0,0 +1,201 @@
%global srcname acme
%if 0%{?fedora}
%bcond_without python3
%else
%bcond_with python3
%endif
Name: python-acme
Version: 0.20.0
Release: 1%{?dist}
Summary: Python library for the ACME protocol
License: ASL 2.0
URL: https://pypi.python.org/pypi/acme
Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
# When running tests argparse is not recognised as provided by core
%if 0%{?rhel}
Patch0: epel7-setup.patch
%endif
BuildRequires: python2-devel
BuildRequires: python-sphinx
%if 0%{?fedora}
BuildRequires: python-sphinx_rtd_theme
%endif
BuildRequires: python-cryptography
BuildRequires: pyOpenSSL >= 0.13
BuildRequires: python-requests
BuildRequires: python-pyrfc3339
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-sphinx
BuildRequires: python3-cryptography
BuildRequires: python3-pyOpenSSL >= 0.13
BuildRequires: python3-requests
BuildRequires: python3-pyrfc3339
%endif
# Required for testing
BuildRequires: python-ndg_httpsclient
BuildRequires: python-nose
BuildRequires: python-tox
BuildRequires: python-mock
BuildRequires: pytz
%if %{with python3}
BuildRequires: python3-ndg_httpsclient
BuildRequires: python3-nose
BuildRequires: python3-tox
BuildRequires: python3-mock
BuildRequires: python3-pytz
%endif
BuildArch: noarch
%{!?py2_build: %global py2_build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build}
%{!?py2_install: %global py2_install %{__python} setup.py install --skip-build --root %{buildroot}}
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}}
%package -n python2-acme
Requires: python-cryptography
Requires: python-ndg_httpsclient
Requires: python-pyasn1
Requires: pyOpenSSL >= 0.13
Requires: python-pyrfc3339
Requires: pytz
Requires: python-requests
Requires: python-six
%if %{with python3}
# Recommends not supported by rpm on EL7
#Recommends: python-acme-doc
%endif
Summary: %{summary}
%{?python_provide:%python_provide python2-acme}
%description
Python libraries implementing the Automatic Certificate Management Environment
(ACME) protocol. It is used by the Let's Encrypt project.
%description -n python2-acme
Python 2 library for use of the Automatic Certificate Management Environment
protocol as defined by the IETF. It's used by the Let's Encrypt project.
%if %{with python3}
%package -n python3-acme
Requires: python3-cryptography
Requires: python3-ndg_httpsclient
Requires: python3-pyasn1
Requires: python3-pyOpenSSL
Requires: python3-pyrfc3339
Requires: python3-pytz
Requires: python3-requests
Requires: python3-six
#Recommends: python-acme-doc
Summary: %{summary}
%{?python_provide:%python_provide python3-acme}
%description -n python3-acme
Python 3 library for use of the Automatic Certificate Management Environment
protocol as defined by the IETF. It's used by the Let's Encrypt project.
%endif
%if 0%{?fedora}
%package doc
Provides: bundled(jquery)
Provides: bundled(underscore)
Provides: bundled(inconsolata-fonts)
Provides: bundled(lato-fonts)
Provides: bundled(robotoslab-fonts)
Requires: fontawesome-fonts fontawesome-fonts-web
Summary: Documentation for python-acme libraries
%description doc
Documentation for the ACME python libraries
%endif
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%py2_build
%if %{with python3}
%py3_build
%endif
%install
%py2_install
mv %{buildroot}%{_bindir}/jws{,-2}
%if %{with python3}
%py3_install
mv %{buildroot}%{_bindir}/jws{,-3}
%endif
# Doc generation is currently broken on EL7, see bz#1492884
%if 0%{?fedora}
# man page is pretty useless but api pages are decent
# Issue opened upstream for improving man page
# Need to cd as parent makefile tries to build libraries
( cd docs && make html )
# Clean up stuff we don't need for docs
rm -rf docs/_build/html/{.buildinfo,man,_sources}
# Unbundle fonts already on system
# Lato ttf is in texlive but that adds a lot of dependencies (30+MB) for just a font in documentation
# and lato is not in it's own -fonts package, only texlive
rm -f docs/_build/html/_static/fonts/fontawesome*
ln -sf /usr/share/fonts/fontawesome/fontawesome-webfont.eot docs/_build/html/_static/fonts/fontawesome-webfont.eot
ln -sf /usr/share/fonts/fontawesome/fontawesome-webfont.svg docs/_build/html/_static/fonts/fontawesome-webfont.svg
ln -sf /usr/share/fonts/fontawesome/fontawesome-webfont.ttf docs/_build/html/_static/fonts/fontawesome-webfont.ttf
ln -sf /usr/share/fonts/fontawesome/fontawesome-webfont.woff docs/_build/html/_static/fonts/fontawesome-webfont.woff
%endif
# upstream state that certbot isn't ready for python3 yet so symlink the -2 version for now
ln -s %{_bindir}/jws-2 %{buildroot}%{_bindir}/jws
%check
%{__python2} setup.py test
%if %{with python3}
%{__python3} setup.py test
%endif
# Make sure the scripts use the expected python versions
grep -q %{__python2} %{buildroot}%{_bindir}/jws-2
%if %{with python3}
grep -q %{__python3} %{buildroot}%{_bindir}/jws-3
%endif
%files -n python2-acme
%license LICENSE.txt
%{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}-%{version}*.egg-info
%{_bindir}/jws
%{_bindir}/jws-2
%if 0%{?rhel}
%doc README.rst
%endif
%if %{with python3}
%files -n python3-acme
%license LICENSE.txt
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}*.egg-info
%{_bindir}/jws-3
%if 0%{?rhel}
%doc README.rst
%endif
%endif
%if 0%{?fedora}
%files doc
%license LICENSE.txt
%doc README.rst
%doc docs/_build/html
%endif
%changelog
* Sun Jan 21 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 0.21.0-1
- Initial build for Fedora 27

View File

@@ -0,0 +1,547 @@
%{?python_enable_dependency_generator}
# 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 pkgname Django
# 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
Name: python-django
Version: 2.2
Release: 1%{?dist}
Summary: A high-level Python Web framework
License: BSD
URL: http://www.djangoproject.com/
Source0: https://files.pythonhosted.org/packages/source/D/Django/Django-%{version}.tar.gz
# skip tests requiring network connectivity
Patch000: Django-2.0-skip-net-tests.patch
BuildArch: noarch
%description
Django is a high-level Python Web framework that encourages rapid
development and a clean, pragmatic design. It focuses on automating as
much as possible and adhering to the DRY (Don't Repeat Yourself)
principle.
%package bash-completion
Summary: bash completion files for Django
BuildRequires: bash-completion
%description bash-completion
This package contains the bash completion files form Django high-level
Python Web framework.
%package -n python3-django-doc
Summary: Documentation for Django
Requires: python3-django = %{version}-%{release}
BuildRequires: python3-sphinx
BuildRequires: python3-psycopg2
%description -n python3-django-doc
This package contains the documentation for the Django high-level
Python Web framework.
%package -n python3-django
Summary: A high-level Python Web framework
%{?python_provide:%python_provide python3-django}
Recommends: (%{name}-bash-completion = %{version}-%{release} if bash)
BuildRequires: python3-devel
BuildRequires: python3-bcrypt
# test requirements
#BuildRequires: python3-py-bcrypt
BuildRequires: python3-docutils
BuildRequires: python3-jinja2
BuildRequires: python3-mock
BuildRequires: python3-numpy
BuildRequires: python3-pillow
BuildRequires: python3-PyYAML
BuildRequires: python3-pytz
BuildRequires: python3-selenium
BuildRequires: python3-sqlparse
BuildRequires: python3-memcached
Provides: bundled(jquery) = 2.2.3
Provides: bundled(xregexp) = 2.0.0
# /usr/bin/django-admin moved from the python2 package
Conflicts: python2-django < 2
Conflicts: python-django < 2
# Removed when F28 was rawhide, keep this till F30:
Obsoletes: python-django-devserver < 0.8.0-8
Obsoletes: python2-django-devserver < 0.8.0-8
Obsoletes: python-django-extra-form-fields < 0.0.1-16
Obsoletes: python2-django-extra-form-fields < 0.0.1-16
Obsoletes: python-django-profiles < 0.2-16
Obsoletes: python2-django-profiles < 0.2-16
Obsoletes: python-django-model-utils < 3.1.1-3
Obsoletes: python2-django-model-utils < 3.1.1-3
Obsoletes: python3-django-model-utils < 3.1.1-3
Obsoletes: python-django-netjsongraph < 0.2.2-5
Obsoletes: python2-django-netjsongraph < 0.2.2-5
Obsoletes: python3-django-netjsongraph < 0.2.2-5
Obsoletes: python-django-dynamite < 0.4.1-16
Obsoletes: python2-django-dynamite < 0.4.1-16
Obsoletes: python-django-flash < 1.8-18
Obsoletes: python2-django-flash < 1.8-18
Obsoletes: python-django-followit < 0.0.3-16
Obsoletes: python2-django-followit < 0.0.3-16
Obsoletes: python-django-socialregistration < 0.5.10-11
Obsoletes: python2-django-socialregistration < 0.5.10-11
Obsoletes: python-django-staticfiles < 1.2.1-13
Obsoletes: python2-django-staticfiles < 1.2.1-13
Obsoletes: python-django-sekizai-doc < 0.8.1-12
Obsoletes: python-django-sekizai < 0.8.1-12
Obsoletes: python2-django-sekizai < 0.8.1-12
Obsoletes: python3-django-sekizai-doc < 0.8.1-12
Obsoletes: python3-django-sekizai < 0.8.1-12
Obsoletes: python-django-south < 1.0.2-3
Obsoletes: python2-django-south < 1.0.2-3
Obsoletes: python3-django-south < 1.0.2-3
Obsoletes: python-django-pgjson < 0.3.1-7
Obsoletes: python2-django-pgjson < 0.3.1-7
Obsoletes: python3-django-pgjson < 0.3.1-7
Obsoletes: python-django-ckeditor < 5.3.0-4
Obsoletes: python2-django-ckeditor < 5.3.0-4
Obsoletes: python3-django-ckeditor < 5.3.0-4
Obsoletes: python-django-extensions < 1.7.3-6
Obsoletes: python2-django-extensions < 1.7.3-6
Obsoletes: python3-django-extensions < 1.7.3-6
Obsoletes: python-django-extensions-doc < 1.7.3-6
Obsoletes: python-django-helpdesk < 0.2.1-3
Obsoletes: python2-django-helpdesk < 0.2.1-3
Obsoletes: python3-django-helpdesk < 0.2.1-3
Obsoletes: python-django-openid-auth < 0.14-4
Obsoletes: python2-django-openid-auth < 0.14-4
Obsoletes: python3-django-openid-auth < 0.14-4
Obsoletes: python-django-pylibmc < 0.6.1-6
Obsoletes: python2-django-pylibmc < 0.6.1-6
Obsoletes: python3-django-pylibmc < 0.6.1-6
Obsoletes: python-django-select2 < 5.8.10-4
Obsoletes: python2-django-select2 < 5.8.10-4
Obsoletes: python3-django-select2 < 5.8.10-4
Obsoletes: python-django-setuptest < 0.2.1-6
Obsoletes: python2-django-setuptest < 0.2.1-6
Obsoletes: python3-django-setuptest < 0.2.1-6
Obsoletes: python-django-federated-login < 1.0.0-16
Obsoletes: python2-django-federated-login < 1.0.0-16
Obsoletes: python3-django-federated-login < 1.0.0-16
%description -n python3-django
Django is a high-level Python Web framework that encourages rapid
development and a clean, pragmatic design. It focuses on automating as
much as possible and adhering to the DRY (Don't Repeat Yourself)
principle.
%prep
%autosetup -p1 -n %{pkgname}-%{version}
# 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
%build
%py3_build
%install
%py3_install
# Manually invoke the python byte compile macro for each path that needs byte
# compilation.
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
%find_lang django
%find_lang djangojs
# append djangojs.lang to django.lang
cat djangojs.lang >> django.lang
# build documentation
export SPHINXBUILD=sphinx-build-3
(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
bashcompdir=$(pkg-config --variable=completionsdir bash-completion)
mkdir -p %{buildroot}$bashcompdir
install -m 0644 -p extras/django_bash_completion \
%{buildroot}$bashcompdir/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}$bashcompdir/$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 $RPM_BUILD_ROOT -name "*.po" | xargs rm -f
#%check
#cd %{_builddir}/%{pkgname}-%{version}
#export PYTHONPATH=$(pwd)
#cd tests
#%{__python3} runtests.py --settings=test_sqlite --verbosity=2 --parallel 1
%files bash-completion
%{_datadir}/bash-completion
%files -n python3-django-doc
%doc docs/_build/html/*
%files -n python3-django -f django.lang
%doc AUTHORS README.rst
%license LICENSE
%{_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/*/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/*/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/*/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/*/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/*/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/*/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/*/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/*/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/*/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/*/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/*/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}/%{pkgname}-%{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__
%changelog
* Wed Apr 10 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2-1
- Update to 2.2 (rhbz#1674439)
* Wed Feb 20 2019 Matthias Runge <mrunge@redhat.com> - 2.1.7-1
- Fix CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format()
rhbz#1678264
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.5-2
- Enable python dependency generator
* Mon Jan 07 2019 Matthias Runge <mrunge@redhat.com> - 2.1.5-1
- fix CVE-2019-3498 python-django: Content spoofing via URL path in
default 404 page (rhbz#1663723)
* Mon Oct 22 2018 Matthias Runge <mrunge@redhat.com> - 2.1.2-1
- fix CVE-2018-16984 Password hash disclosure to “view only” admin users
(rhbz#1639399)
* Fri Aug 17 2018 Matthias Runge <mrunge@redhat.com> - 2.1-1
- update to 2.1 (rhbz#1611025)
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jul 06 2018 Matthias Runge <mrunge@redhat.com> - 2.0.7-1
- bugfix update to 2.0.7 (rhbz#1597265)
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-2
- Rebuilt for Python 3.7
* Mon Jun 04 2018 Matthias Runge <mrunge@redhat.com> - 2.0.6-1
- bugfix update to 2.0.6 (rhbz#1585347)
* Thu May 03 2018 Matthias Runge <mrunge@redhat.com> - 2.0.5-1
- update to 2.0.5 (rhbz#1574123)
* Tue Apr 03 2018 Matthias Runge <mrunge@redhat.com> - 2.0.4-1
- update to 2.0.4 (rhbz#1541188)
* Fri Mar 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-4
- Obsolete pythonX-django-ckeditor, pythonX-django-extensions,
pythonX-django-helpdesk, pythonX-django-openid-auth, pythonX-django-pylibmc,
pythonX-django-select2, pythonX-django-setuptest,
pythonX-django-federated-login
* Sun Mar 11 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-3
- Obsolete pythonX-django-pgjson
* Wed Mar 07 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-2
- Obsolete pythonX-django-sekizai and pythonX-django-south
* Tue Mar 06 2018 Matthias Runge <mrunge@redhat.com> - 2.0.3-1
- update to 2.0.3, fix CVE-2018-7536 (rhbz#1552178)
* Fri Mar 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-4
- Obsolete packages retired from https://pagure.io/fesco/issue/1857
* Fri Mar 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-3
- Obsolete pythonX-django-model-utils and pythonX-django-netjsongraph
* Wed Feb 07 2018 Matthias Runge <mrunge@redhat.com> - 2.0.2-2
- requires python2 while being python3 (rhbz#15424)
* Fri Feb 02 2018 Matthias Runge <mrunge@redhat.com> - 2.0.2-1
- fix CVE-2018-6188
* Tue Jan 16 2018 Matthias Runge <mrunge@redhat.com> - 2.0.1-1
- update to 2.0.1
- remove python2 bits
- enable python3 tests
* Tue Jan 16 2018 Troy Dawson <tdawson@redhat.com> - 1.11.9-2
- Update conditionals
* Thu Jan 04 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.9-1
- update to 1.11.9
* Thu Jan 04 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.8-2
- Obsolete python(2)-django-devserver
* Fri Dec 15 2017 Matthias Runge <mrunge@redhat.com> - 1.11.8-1
- update to 1.11.8
* Wed Sep 06 2017 Matthias Runge <mrunge@redhat.com> - 1.11.5-1
- update to 1.11.5 (rhbz#1488683)
* Wed Aug 02 2017 Matthias Runge <mrunge@redhat.com> - 1.11.4-1
- update to 1.11.4 (rhbz#1477382)
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jul 03 2017 Matthias Runge <mrunge@redhat.com> - 1.11.3-1
- Update to 1.11.3 (rhbz#1467029)
* Thu Jun 15 2017 Matthias Runge <mrunge@redhat.com> - 1.11.2-1
- update to 1.11.2 (rhbz#1448664
- add dependency to pytz (rhbz#1458493)
* Thu Apr 06 2017 Matthias Runge <mrunge@redhat.com> - 1.11-1
- update to 1.11 (rhbz#1410268)
* Tue Feb 28 2017 Matthias Runge <mrunge@redhat.com> - 1.10.5-1
- rebase to 1.10.5, fix FTBFS (rhbz#1424135)
- declare bundled libs (rhbz#1401243)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.10.4-2
- Rebuild for Python 3.6
- Disable python3 tests for now
* Fri Dec 02 2016 Matthias Runge <mrunge@redhat.com> - 1.10.4-1
- update to stable 1.10.4 (rhbz#1400730)
* Wed Nov 02 2016 Matthias Runge <mrunge@redhat.com> - 1.10.3-1
- update to 1.10.3 (rhbz#1390782)
- fix CVE-2016-9013, CVE-2016-9014
* Mon Oct 03 2016 Matthias Runge <mrunge@redhat.com> - 1.10.2-1
- update to 1.10.2 (rhbz#1381019)
* Thu Sep 22 2016 Matthias Runge <mrunge@redhat.com> - 1.10.1-1
- rebase to 1.10.1 (rhbz#1338391)
* Thu Jul 21 2016 Matthias Runge <mrunge@redhat.com> - 1-9.8-1
- fix CVE-2016-6186 (rhbz#1357701)
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.7-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Mon Jun 06 2016 Matthias Runge <mrunge@redhat.com> - 1.9.7-1
- bugfix release
* Tue May 31 2016 Nils Philippsen <nils@redhat.com>
- fix source URL
* Sun May 8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.9.6-2
- Put the provives/obsoletes in the right spot for new python naming
* Tue May 03 2016 Matthias Runge <mrunge@redhat.com> - 1.9.6-1
- update to 1.9.6 (rhbz#1323374)
* Tue Mar 08 2016 Matthias Runge <mrunge@redhat.com> - 1.9.4-1
- update to 1.9.4 fixing a regression introduced in last
upstream fix for CVE-2016-2512
* Wed Mar 02 2016 Matthias Runge <mrunge@redhat.com> - 1.9.3-1
- update to 1.9.3, fixing CVE-2016-2512, CVE-2016-2513
(rhbz#1313500)
* Thu Feb 11 2016 Matthias Runge <mrunge@redhat.com> - 1.9.2-1
- update to 1.9.2 (rhbz#1266062)
- modernize spec file, provide py2, obsolete python-django
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

View File

@@ -0,0 +1,362 @@
## START: Set by rpmautospec
## (rpmautospec version 0.2.6)
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
release_number = 4;
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
### Abstract ###
# global prerelease b4
%global openldap_version 2.4.45-4
%global pypi_name python-ldap
Name: python-ldap
Version: 3.4.0
Release: %autorelease
License: Python
Summary: An object-oriented API to access LDAP directory servers
URL: https://python-ldap.org/
Source0: %{pypi_source}
Patch0: python-ldap-always-use-ldap-library.patch
### Build Dependencies ###
BuildRequires: gcc
BuildRequires: openldap-devel >= %{openldap_version}
BuildRequires: openssl-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
# Test dependencies
BuildRequires: openldap-servers >= %{openldap_version}
BuildRequires: openldap-clients >= %{openldap_version}
BuildRequires: python3-pyasn1 >= 0.3.7
BuildRequires: python3-pyasn1-modules >= 0.1.5
%global _description\
python-ldap provides an object-oriented API for working with LDAP within\
Python programs. It allows access to LDAP directory servers by wrapping the\
OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
%description %_description
%package -n python3-ldap
Summary: %{summary}
Requires: openldap >= %{openldap_version}
Requires: python3-pyasn1 >= 0.3.7
Requires: python3-pyasn1-modules >= 0.1.5
Requires: python3-setuptools
%{?python_provide:%python_provide python3-ldap}
Obsoletes: python3-pyldap < 3
Provides: python3-pyldap = %{version}-%{release}
Provides: python3-pyldap%{?_isa} = %{version}-%{release}
%description -n python3-ldap %_description
%prep
%autosetup -p1 -n %{name}-%{version}%{?prerelease}
# Fix interpreter
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
%build
%py3_build
%check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v -s Tests -p 't_*'
%install
%py3_install
%files -n python3-ldap
%license LICENCE
%doc CHANGES README TODO Demo
%{python3_sitearch}/_ldap.cpython-*.so
%{python3_sitearch}/ldapurl.py*
%{python3_sitearch}/ldif.py*
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/slapdtest/
%{python3_sitearch}/ldap/
%{python3_sitearch}/python_ldap-%{version}%{?prerelease}-py%{python3_version}.egg-info/
%changelog
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> 3.4.0-4
- Rebuilt for Python 3.11
* Thu Feb 10 2022 Simon Pichugin <spichugi@redhat.com> 3.4.0-3
- Always use libldap shared library
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 3.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Nov 26 2021 Christian Heimes <cheimes@redhat.com> 3.4.0-1
- Update to 3.4.0, fixes RHBZ#2026947
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jun 28 2021 Christian Heimes <cheimes@redhat.com> - 3.3.1-6
- Fix SASL get/set options on big endian platforms
- Resolves: rhbz#1976824
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.1-5
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 21 17:53:26 CET 2021 Christian Heimes <cheimes@redhat.com> - 3.3.1-3
- Run test suite without tox (#1918913)
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-2
- Use https in URL
- Drop build dependency on python3-coverage
* Thu Oct 22 2020 Christian Heimes <cheimes@redhat.com> - 3.3.1-1
- New upstream release 3.3.1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-10
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Oct 23 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-8
- Subpackage python2-ldap has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-7
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
- Rebuilt for Python 3.7
* Fri May 25 2018 Christian Heimes <cheimes@redhat.com> - 3.1.0-1
- New upstream release 3.1.0
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 3.0.0-1
- New upstream release 3.0.0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-0.5.b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 10 2018 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.4.b4
- New upstream release 3.0.0b4 (RHBZ #1496470)
* Wed Dec 20 2017 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.3.b3
- New upstream release 3.0.0b3 (RHBZ #1496470)
* Mon Dec 11 2017 Christian Heimes <cheimes@redhat.com> - 3.0.0-0.2.b2
- New upstream release 3.0.0b2 (RHBZ #1496470)
- Require OpenLDAP with fix for NSS issue (see #1520990)
* Mon Dec 04 2017 Christian Heimes <cheimes@redhat.com> - 0:3.0.0-0.1.b1
- New upstream release 3.0.0b1 (RHBZ #1496470)
- Resolves RHBZ #1489184
- Enable unittests
- Remove dsml module
- Package python3-ldap, which obsoletes python3-pyldap
* Wed Nov 08 2017 Christian Heimes <cheimes@redhat.com> - 0:2.4.25-9
- Fix issue in pyasn1 patch
* Tue Nov 07 2017 Christian Heimes <cheimes@redhat.com> - 0:2.4.25-8
- Apply fix for pyasn1 >= 0.3
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0:2.4.25-7
- Python 2 binary package renamed to python2-ldap
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0:2.4.25-4
- Rebuild due to bug in RPM (RHBZ #1468476)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.25-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Apr 20 2016 Petr Spacek <pspacek@redhat.com> - 2.4.25-1
- New upstream release 2.4.25
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Sep 29 2014 Petr Spacek <pspacek@redhat.com> - 0:2.4.17-1
- New upstream release adds features required in bug 1122486
- Dependency on pyasn1-modules was added to fix bug 995545
* Thu Sep 25 2014 Petr Spacek <pspacek@redhat.com> - 0:2.4.16-1
- New upstream release fixes bug 1007820
- Dependency on pyasn1 was added to fix bug 995545
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Jan 02 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.4.6-1
- New upstream release
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Sep 24 2010 Parag Nemade <paragn AT fedoraproject.org> - 0:2.3.12-1
- Merge-review cleanup (#226343)
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0:2.3.10-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Jan 14 2010 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.10-1
- Update to 2.3.10
- Change source URI to pypi.python.org.
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0:2.3.6-3
- rebuilt with new openssl
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Apr 01 2009 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.6-1
- Update to 2.3.6
* Fri Feb 27 2009 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.5-5
- Fix a build error.
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - 0:2.3.5-3
- rebuild with new openssl
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0:2.3.5-2
- Rebuild for Python 2.6
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.3.5-1
- fix license tag
- update to 2.3.5
* Sun Feb 17 2008 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-3.fc9
- Rebuild with GCC 4.3
* Wed Dec 05 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-2.fc9
- Rebuild against new openssl.
* Wed Oct 10 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.1-1.fc8
- Update to 2.3.1
* Fri Jun 08 2007 Matthew Barnes <mbarnes@redhat.com> - 0:2.3.0-1.fc8
- Update to 2.3
- Spec file cleanups.
* Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0:2.2.0-3
- rebuild against python 2.5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
- rebuild
* Wed May 17 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-2
- Put back the epoch line... happy beehive?
* Mon May 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.2.0-1
- Update to 2.2.0
- Update python-ldap-2.0.6-rpath.patch and rename it to
python-ldap-2.2.0-dirs.patch.
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:2.0.6-5.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Tue Nov 8 2005 Tomas Mraz <tmraz@redhat.com> - 2.0.6-5
- rebuilt with new openssl
* Tue Mar 22 2005 Warren Togami <wtogami@redhat.com> - 2.0.6-4
- add LICENCE (#150842)
- simplify python reqs
- remove invalid rpath
* Wed Mar 16 2005 Dan Williams <dcbw@redhat.com> - 0:2.0.6-2
- rebuilt to pick up new libssl.so.5
* Tue Feb 8 2005 David Malcolm <dmalcolm@redhat.com> - 0:2.0.6-1
- 2.0.6
* Tue Nov 16 2004 Nalin Dahyabhai <nalin@redhat.com> - 0:2.0.1-3
- rebuild (#139161)
* Mon Aug 30 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-2
- Rewrote description; added requirement for openldap
* Tue Aug 17 2004 David Malcolm <dmalcolm@redhat.com> - 0:2.0.1-1
- imported into Red Hat's packaging system from Fedora.us; set release to 1
* Wed Jun 30 2004 Panu Matilainen <pmatilai@welho.com> 0:2.0.1-0.fdr.1
- update to 2.0.1
* Sun Dec 07 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.4.pre16
- fix spec permissions + release tag order (bug 1099)
* Sat Dec 6 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.0.0-0.fdr.0.pre16.3
- Stricter python version requirements.
- BuildRequire openssl-devel.
- Explicitly build *.pyo, install them as %%ghost.
- Own more installed dirs.
- Remove $RPM_BUILD_ROOT at start of %%install.
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.2
- duh, build requires python-devel, not just python...
* Wed Dec 03 2003 Panu Matilainen <pmatilai@welho.com> 0:2.0.0-0.fdr.0.pre16.1
- Initial Fedora packaging.

View File

@@ -0,0 +1,176 @@
%bcond_without debug
%define pkgname mysqlclient-python
# share doc between python2 and python3
%global _docdir_fmt %{name}
Summary: An interface to MySQL
Name: python-mysql
Version: 1.4.2.post1
Release: 1%{?dist}
License: GPLv2+
Group: Development/Libraries
URL: https://github.com/PyMySQL/mysqlclient-python
Source0: %{pkgname}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: python2-devel python2-setuptools
BuildRequires: python3-devel python3-setuptools
BuildRequires: mariadb-connector-c-devel openssl-devel zlib-devel
%if %{with debug}
BuildRequires: python2-debug python3-debug
%endif
%description
Python interface to MySQL
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)
%package -n python2-mysql
Summary: An interface to MySQL
Group: Development/Libraries
Provides: MySQL-python = %{version}-%{release}
Obsoletes: MySQL-python < 1.3.6-4
Provides: python-mysql = %{version}-%{release}
Obsoletes: python-mysql < 1.3.7-2
%description -n python2-mysql
Python2 interface to MySQL
MySQLdb is an interface to the popular MySQL database server for Python2.
The design goals are:
- Compliance with Python database API version 2.0
- Thread-safety
- Thread-friendliness (threads will not block each other)
%if %{with debug}
%package -n python2-mysql-debug
Summary: An interface to MySQL, built for the CPython debug runtime
Group: Applications/System
# Require the base package for the .py/.pyc files:
Requires: python2-mysql%{_isa} = %{version}-%{release}
Provides: MySQL-python-debug = %{version}-%{release}
Obsoletes: MySQL-python-debug < 1.3.6-4
Provides: python-mysql-debug = %{version}-%{release}
Obsoletes: python-mysql-debug < 1.3.7-2
%description -n python2-mysql-debug
Python interface to MySQL, built for the CPython debug runtime
%endif # with debug
%package -n python3-mysql
Summary: An interface to MySQL
Group: Development/Libraries
Provides: MySQL-python3 = %{version}-%{release}
Obsoletes: MySQL-python3 < 1.3.6-4
%description -n python3-mysql
Python3 interface to MySQL
MySQLdb is an interface to the popular MySQL database server for Python3.
The design goals are:
- Compliance with Python database API version 2.0
- Thread-safety
- Thread-friendliness (threads will not block each other)
%if %{with debug}
%package -n python3-mysql-debug
Summary: An interface to MySQL, built for the CPython debug runtime
Group: Applications/System
# Require the base package for the .py/.pyc files:
Requires: python3-mysql%{_isa} = %{version}-%{release}
Provides: MySQL-python3-debug = %{version}-%{release}
Obsoletes: MySQL-python3-debug < 1.3.6-4
%description -n python3-mysql-debug
Python3 interface to MySQL, built for the CPython debug runtime
%endif # with debug
%prep
%autosetup -n %{pkgname}-%{version} -p1
%build
%py2_build
%if %{with debug}
CFLAGS="$RPM_OPT_FLAGS" %{__python2}-debug setup.py build
%endif
%py3_build
%if %{with debug}
CFLAGS="$RPM_OPT_FLAGS" %{__python3}-debug setup.py build
%endif
%install
%py2_install
%if %{with debug}
%{__python2}-debug setup.py install -O1 --skip-build --root %{buildroot}
%endif
%py3_install
%if %{with debug}
%{__python3}-debug setup.py install -O1 --skip-build --root %{buildroot}
%endif
%check
# You need MySQL (or MariaDB) running
# and ~/.my.conf configured to have access rights
#
# cd tests/
# python -m unittest test_MySQLdb_capabilities
# python -m unittest test_MySQLdb_dbapi20
# python -m unittest test_MySQLdb_nonstandard
%files -n python2-mysql
%doc README.md doc/*
%license LICENSE
%dir %{python2_sitearch}/MySQLdb
%{python2_sitearch}/MySQLdb/*.py
%{python2_sitearch}/MySQLdb/*.py[co]
%{python2_sitearch}/MySQLdb/*.so
%dir %{python2_sitearch}/MySQLdb/constants
%{python2_sitearch}/MySQLdb/constants/*.py
%{python2_sitearch}/MySQLdb/constants/*.py[co]
%{python2_sitearch}/mysqlclient-%{version}-py2.*.egg-info
%if %{with debug}
%files -n python2-mysql-debug
%{python2_sitearch}/MySQLdb/_mysql_d.so
#%{python2_sitearch}/MySQLdb/_mysql.so*.debug
%endif
%files -n python3-mysql
%doc README.md doc/*
%license LICENSE
%dir %{python3_sitearch}/MySQLdb
%{python3_sitearch}/MySQLdb/*.py
%dir %{python3_sitearch}/MySQLdb/__pycache__
%{python3_sitearch}/MySQLdb/__pycache__/*.py[co]
%{python3_sitearch}/MySQLdb/*.so
%dir %{python3_sitearch}/MySQLdb/constants
%{python3_sitearch}/MySQLdb/constants/*.py
%dir %{python3_sitearch}/MySQLdb/constants/__pycache__
%{python3_sitearch}/MySQLdb/constants/__pycache__/*.py[co]
%{python3_sitearch}/mysqlclient-%{version}-py3.*.egg-info
%if %{with debug}
%files -n python3-mysql-debug
%{python3_sitearch}/MySQLdb/_mysql.cpython-3?dm*.so
#%{python3_sitearch}/MySQLdb/_mysql.cpython-37m-x86_64-linux-gnu.so*.debug
%endif # with debug
%changelog
* Sun Apr 28 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial relase for fedora 29 (1.4.2).

View File

@@ -0,0 +1,102 @@
%if 0%{?fedora} >= 13 || 0%{?el} >= 8
%global with_python3 1
%endif
%global upstream_name redis
Name: python-%{upstream_name}
Version: 3.2.1
Release: 1%{?dist}
Summary: Python 2 interface to the Redis key-value store
License: MIT
URL: https://github.com/andymccurdy/redis-py
Source0: https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-py
BuildRequires: python2-pytest
BuildRequires: redis
BuildRequires: python2-mock
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1591808
BuildRequires: jemalloc
%global _description\
This is a Python 2 interface to the Redis key-value store.
%description %_description
%package -n python2-redis
Summary: %summary
%{?python_provide:%python_provide python2-redis}
%description -n python2-redis %_description
%if 0%{?with_python3}
%package -n python3-redis
Summary: Python 3 interface to the Redis key-value store
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.
%endif
%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*
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
%{__python2} setup.py build
%install
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
popd
%endif
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%check
redis-server &
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py test
popd
%endif
%{__python2} setup.py test
kill %1
%files -n python2-redis
%doc CHANGES LICENSE README.rst
%{python2_sitelib}/%{upstream_name}
%{python2_sitelib}/%{upstream_name}-%{version}-py%{python2_version}.egg-info
%if 0%{?with_python3}
%files -n python3-redis
%doc CHANGES LICENSE README.rst
%{python3_sitelib}/%{upstream_name}
%{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info
%endif
%changelog
* Sun May 12 2019 Javier Peña <daniel.steiner@dsteiner.ch>
- First build.

View File

@@ -0,0 +1,995 @@
%if 0%{?fedora} || 0%{?rhel} > 7
%global with_python3 1
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif
%if 0%{?rhel} > 7
# Build without BuildRequires ImageMagick, to skip imgconverter tests
%bcond_with imagemagick_tests
%else
%bcond_without imagemagick_tests
%endif
# When bootstrapping sphinx, we don't yet have sphinxcontrib-websupport
%bcond_without websupport
# Also, we don't have all the tests requirements
%bcond_without tests
# Currently, python2 version is always the default: https://fedoraproject.org/wiki/Packaging:Python#Naming
%if 1
%global py3_default 0
%else
%global py3_default 1
%endif
%global upstream_name Sphinx
Name: python-sphinx
Version: 1.8.4
Release: 1%{?dist}
Epoch: 1
Summary: Python documentation generator
# Unless otherwise noted, the license for code is BSD
# sphinx/util/stemmer.py Public Domain
# sphinx/pycode/pgen2 Python
# jquery (MIT or GPLv2)
License: BSD and Public Domain and Python and (MIT or GPLv2)
URL: http://sphinx-doc.org/
Source0: https://files.pythonhosted.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
Source1: python2-sphinx
Source2: python3-sphinx
Source3: zz-modules-python-sphinx.sh
Source4: zz-modules-python-sphinx.csh
Source5: README.fedora
# environment-modules file to select whether the py2 or py3 version of
# python-sphinx execuitables is default
Source6: default-sphinx-command.in
# Make the test_latex_remote_images an expected failure
# since it requires an active internet connection
# to fetch images, which is not possible in koji or mock.
Patch0: xfail-test_latex_remote_images.patch
# Allow extra themes to exist. We pull in python[23]-sphinx-theme-alabaster
# which causes that test to fail.
Patch1: sphinx-test_theming.diff
BuildArch: noarch
BuildRequires: python2-devel >= 2.4
BuildRequires: python2-babel
BuildRequires: python2-setuptools
BuildRequires: python2-docutils
BuildRequires: python2-jinja2
BuildRequires: python2-pygments >= 2.0
BuildRequires: python2-six
BuildRequires: python2-sphinx_rtd_theme
BuildRequires: python2-sphinx-theme-alabaster
BuildRequires: python2-imagesize
BuildRequires: python2-requests
BuildRequires: python2-packaging
BuildRequires: python2-typing
%if %{with websupport}
BuildRequires: python2-sphinxcontrib-websupport
%endif
BuildRequires: environment(modules)
# for fixes
BuildRequires: dos2unix
%if %{with tests}
BuildRequires: python2-nose
BuildRequires: python2-pytest
BuildRequires: python2-pytest-cov
BuildRequires: gettext
BuildRequires: texinfo
BuildRequires: graphviz
BuildRequires: python2-sqlalchemy
BuildRequires: python2-mock
BuildRequires: python2-html5lib
BuildRequires: python2-whoosh
BuildRequires: python2-snowballstemmer
BuildRequires: python2-enum34
%if %{with imagemagick_tests}
BuildRequires: ImageMagick
%endif
BuildRequires: texlive-collection-fontsrecommended
BuildRequires: texlive-collection-latex
BuildRequires: texlive-dvipng
BuildRequires: texlive-dvisvgm
BuildRequires: texlive-ucs
BuildRequires: tex(cmap.sty)
BuildRequires: tex(ecrm1000.tfm)
BuildRequires: tex(footnote.sty)
BuildRequires: tex(framed.sty)
BuildRequires: tex(multirow.sty)
BuildRequires: tex(parskip.sty)
BuildRequires: tex(titlesec.sty)
BuildRequires: tex(threeparttable.sty)
BuildRequires: tex(upquote.sty)
BuildRequires: tex(wrapfig.sty)
BuildRequires: tex(capt-of.sty)
BuildRequires: tex(needspace.sty)
BuildRequires: tex(eqparbox.sty)
BuildRequires: tex(amsmath.sty)
BuildRequires: tex(amsthm.sty)
BuildRequires: tex(amssymb.sty)
BuildRequires: tex(amsfonts.sty)
BuildRequires: tex(bm.sty)
BuildRequires: tex(palatino.sty)
BuildRequires: tex(multirow.sty)
BuildRequires: tex(eqparbox.sty)
BuildRequires: tex(atbegshi.sty)
BuildRequires: tex(anyfontsize.sty)
BuildRequires: tex(luatex85.sty)
BuildRequires: tex(fncychap.sty)
BuildRequires: tex(tabulary.sty)
BuildRequires: tex(polyglossia.sty)
BuildRequires: tex(ctablestack.sty)
BuildRequires: tex(eu1enc.def)
%endif
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-babel
BuildRequires: python3-setuptools
BuildRequires: python3-docutils
BuildRequires: python3-jinja2
BuildRequires: python3-pygments
BuildRequires: python3-six
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: python3-sphinx-theme-alabaster
BuildRequires: python3-packaging
BuildRequires: python3-imagesize
BuildRequires: python3-requests
%if %{with websupport}
BuildRequires: python3-sphinxcontrib-websupport
%endif
%if %{with tests}
BuildRequires: python3-nose
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-sqlalchemy
BuildRequires: python3-mock
BuildRequires: python3-html5lib
BuildRequires: python3-whoosh
BuildRequires: python3-snowballstemmer
%endif
%endif # with_python3
%description
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.
Sphinx uses reStructuredText as its markup language, and many of its
strengths come from the power and straightforwardness of
reStructuredText and its parsing and translating suite, the Docutils.
Although it is still under constant development, the following
features are already present, work fine and can be seen "in action" in
the Python docs:
* Output formats: HTML (including Windows HTML Help) and LaTeX,
for printable PDF versions
* Extensive cross-references: semantic markup and automatic links
for functions, classes, glossary terms and similar pieces of
information
* Hierarchical structure: easy definition of a document tree, with
automatic links to siblings, parents and children
* Automatic indices: general index as well as a module index
* Code handling: automatic highlighting using the Pygments highlighter
* Various extensions are available, e.g. for automatic testing of
snippets and inclusion of appropriately formatted docstrings.
%package -n python2-sphinx
Summary: Python documentation generator
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
Requires: python2-babel
Requires: python2-docutils
Requires: python2-jinja2
Requires: python2-pygments
Requires: python2-mock
Requires: python2-snowballstemmer
Requires: python2-sphinx_rtd_theme
Requires: python2-six
Requires: python2-sphinx-theme-alabaster
Requires: python2-imagesize
Requires: python2-requests
Requires: python2-packaging
Requires: python2-typing
%if %{with websupport}
Requires: python2-sphinxcontrib-websupport
%endif
Requires: environment(modules)
# Needed to get rid of the alternatives config installed in f24 and f25
# versions of the package
Requires(pre): /usr/sbin/alternatives
Recommends: graphviz
Recommends: ImageMagick
Obsoletes: python-sphinx <= 1.2.3
Obsoletes: python-sphinxcontrib-napoleon < 0.5
Provides: python-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
Obsoletes: python2-Sphinx <= 1.3.1-4
Provides: python2-Sphinx = %{?epoch}:%{version}-%{release}
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
%{?python_provide:%python_provide python2-sphinx}
Conflicts: python3-sphinx < %{?epoch}:%{version}-%{release}
%description -n python2-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.
Sphinx uses reStructuredText as its markup language, and many of its
strengths come from the power and straightforwardness of
reStructuredText and its parsing and translating suite, the Docutils.
Although it is still under constant development, the following
features are already present, work fine and can be seen "in action" in
the Python docs:
* Output formats: HTML (including Windows HTML Help) and LaTeX,
for printable PDF versions
* Extensive cross-references: semantic markup and automatic links
for functions, classes, glossary terms and similar pieces of
information
* Hierarchical structure: easy definition of a document tree, with
automatic links to siblings, parents and children
* Automatic indices: general index as well as a module index
* Code handling: automatic highlighting using the Pygments highlighter
* Various extensions are available, e.g. for automatic testing of
snippets and inclusion of appropriately formatted docstrings.
%package latex
Summary: LaTeX builder dependencies for %{name}
Requires: python(Sphinx) = %{?epoch}:%{version}-%{release}
Requires: texlive-collection-fontsrecommended
Requires: texlive-collection-latex
Requires: texlive-dvipng
Requires: texlive-dvisvgm
Requires: texlive-ucs
Requires: tex(cmap.sty)
Requires: tex(ecrm1000.tfm)
Requires: tex(footnote.sty)
Requires: tex(framed.sty)
Requires: tex(multirow.sty)
Requires: tex(parskip.sty)
Requires: tex(titlesec.sty)
Requires: tex(threeparttable.sty)
Requires: tex(upquote.sty)
Requires: tex(wrapfig.sty)
Requires: tex(capt-of.sty)
Requires: tex(needspace.sty)
Requires: tex(eqparbox.sty)
Requires: tex(amsmath.sty)
Requires: tex(amsthm.sty)
Requires: tex(amssymb.sty)
Requires: tex(amsfonts.sty)
Requires: tex(bm.sty)
Requires: tex(palatino.sty)
Requires: tex(multirow.sty)
Requires: tex(eqparbox.sty)
Requires: tex(atbegshi.sty)
Requires: tex(anyfontsize.sty)
Requires: tex(luatex85.sty)
Requires: tex(fncychap.sty)
Requires: tex(tabulary.sty)
Requires: tex(polyglossia.sty)
Requires: tex(ctablestack.sty)
Requires: tex(eu1enc.def)
Obsoletes: python3-sphinx-latex < 1.4.4-2
%description latex
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 pulls in the TeX dependencies needed by Sphinx's LaTeX
builder.
%if 0%{?with_python3}
%package -n python3-sphinx
Summary: Python documentation generator
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
Requires: python3-babel
Requires: python3-docutils
Requires: python3-jinja2
Requires: python3-pygments
Requires: python3-mock
Requires: python3-snowballstemmer
Requires: python3-sphinx_rtd_theme
Requires: python3-sphinx-theme-alabaster
Requires: python3-imagesize
Requires: python3-requests
Requires: python3-six
Requires: python3-packaging
%if %{with websupport}
Requires: python3-sphinxcontrib-websupport
%endif
Recommends: graphviz
Recommends: ImageMagick
Requires: environment(modules)
# Needed to get rid of the alternatives config installed in f24 and f25
# versions of the package
Requires(pre): /usr/sbin/alternatives
Obsoletes: python3-sphinxcontrib-napoleon < 0.3.0
Provides: python3-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
%{?python_provide:%python_provide python3-sphinx}
Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release}
%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.
Sphinx uses reStructuredText as its markup language, and many of its
strengths come from the power and straightforwardness of
reStructuredText and its parsing and translating suite, the Docutils.
Although it is still under constant development, the following
features are already present, work fine and can be seen "in action" in
the Python docs:
* Output formats: HTML (including Windows HTML Help) and LaTeX,
for printable PDF versions
* Extensive cross-references: semantic markup and automatic links
for functions, classes, glossary terms and similar pieces of
information
* Hierarchical structure: easy definition of a document tree, with
automatic links to siblings, parents and children
* Automatic indices: general index as well as a module index
* Code handling: automatic highlighting using the Pygments highlighter
* Various extensions are available, e.g. for automatic testing of
snippets and inclusion of appropriately formatted docstrings.
%endif # with_python3
%package doc
Summary: Documentation for %{name}
License: BSD
Requires: python(Sphinx) = %{?epoch}:%{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.
%package locale
Summary: Locale files for %{name}
License: BSD
%description locale
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 locale files for Sphinx
%prep
%autosetup -n %{upstream_name}-%{version}%{?prerel} -p1
cp %{SOURCE5} .
# fix line encoding of bundled jquery.js
dos2unix -k ./sphinx/themes/basic/static/jquery.js
%if %{without imagemagick_tests}
rm tests/test_ext_imgconverter.py
%endif
%if %{without websupport}
rm tests/test_websupport.py tests/test_api_translator.py
%endif
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif # with_python3
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif # with_python3
export PYTHONPATH=$PWD
pushd doc
%if 0%{?with_python3}
export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py"
%else
export SPHINXBUILD="%{__python2} ../sphinx/cmd/build.py"
%endif
make html SPHINXBUILD="$SPHINXBUILD"
make man SPHINXBUILD="$SPHINXBUILD"
rm -rf _build/html/.buildinfo
mv _build/html ..
popd
%install
%if 0%{?with_python3}
%py3_install
install -d %{buildroot}%{_libexecdir}/python3-sphinx
for i in sphinx-{apidoc,autogen,build,quickstart}; do
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
ln -s $i-%{python3_version} %{buildroot}%{_bindir}/$i-3
ln -s %{_bindir}/$i-3 %{buildroot}%{_libexecdir}/python3-sphinx/$i
done
%endif # with_python3
%py2_install
install -d %{buildroot}%{_libexecdir}/python2-sphinx
for i in sphinx-{apidoc,autogen,build,quickstart}; do
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python2_version}
ln -s $i-%{python2_version} %{buildroot}%{_bindir}/$i-2
ln -s %{_bindir}/$i-2 %{buildroot}%{_libexecdir}/python2-sphinx/$i
done
pushd doc
# Deliver man pages
install -d %{buildroot}%{_mandir}/man1
for f in _build/man/sphinx-*.1;
do
### TODO: these are all the same. Do we really need to ship them three
### times or is it fine to just ship them as e.g. sphinx-build.1
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python2_version}.1|")
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python3_version}.1|")
done
# Remove language files, they're identical to the ones from the
# Python 2 build that will be moved to /usr/share below
find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \;
popd
# Clean up non-python files
rm -f %{buildroot}%{python2_sitelib}/sphinx/locale/.DS_Store
rm -rf %{buildroot}%{python2_sitelib}/sphinx/locale/.tx
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
# Deliver rst files
rm -rf doc/_build
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
mv doc reST
# Move language files to /usr/share;
# patch to support this incorporated in 0.6.6
pushd %{buildroot}%{python2_sitelib}
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
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
install -d %{buildroot}%{_modulesdir}/python-sphinx
install -m 0644 %{SOURCE1} %{buildroot}%{_modulesdir}/python-sphinx/
sed -i 's|@python2_sphinx_dir@|%{_libexecdir}/python2-sphinx|' %{buildroot}%{_modulesdir}/python-sphinx/python2-sphinx
install -m 0644 %{SOURCE2} %{buildroot}%{_modulesdir}/python-sphinx/
sed -i 's|@python3_sphinx_dir@|%{_libexecdir}/python3-sphinx|' %{buildroot}%{_modulesdir}/python-sphinx/python3-sphinx
install -d %{buildroot}%{_sysconfdir}/profile.d
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
%if %{py3_default}
sed 's/@PYTHONVER@/3/' < %{SOURCE6} > %{buildroot}%{_modulesdir}/python-sphinx/.version
# These symlinks establish a default for when a package is first installed (and
# therefore, environment modules is not loaded). The user can immediately
# switch them by using module swap python-sphinx/python2-sphinx
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
ln -s %{_libexecdir}/python3-sphinx/$filename %{buildroot}%{_bindir}/$filename
done
%else
sed 's/@PYTHONVER@/2/' < %{SOURCE6} > %{buildroot}%{_modulesdir}/python-sphinx/.version
# These symlinks establish a default for when a package is first installed (and
# therefore, environment modules is not loaded). The user can immediately
# switch them by using module swap python-sphinx/python3-sphinx
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
ln -s %{_libexecdir}/python2-sphinx/$filename %{buildroot}%{_bindir}/$filename
done
%endif
%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 PYTHONPATH=$PWD
## Currently, all linkcheck tests hit external websites. Since network access
## is disabled in koji, we have to disable these.
#rm tests/test_build_linkcheck.py
## Igoring test_api_translator for now as it fails on Fedora.
## The issue has been reported upstream: https://github.com/sphinx-doc/sphinx/issues/4710
#LANG=C.UTF-8 pytest-2
#%if 0%{?with_python3}
#pushd %{py3dir}
## Currently, all linkcheck tests hit external websites. Since network access
## is disabled in koji, we have to disable these.
#rm tests/test_build_linkcheck.py
#pytest-3
#popd
#%endif # with_python3
#%endif # with tests
%files latex
%license LICENSE
%files locale -f sphinx.lang
%license LICENSE
%dir %{_datadir}/sphinx/
%dir %{_datadir}/sphinx/locale
%dir %{_datadir}/sphinx/locale/*
%files -n python2-sphinx
%license LICENSE
%doc AUTHORS CHANGES EXAMPLES README.rst README.fedora
%{_bindir}/sphinx-*-2*
%{_bindir}/sphinx-build
%{_bindir}/sphinx-apidoc
%{_bindir}/sphinx-autogen
%{_bindir}/sphinx-quickstart
%{python2_sitelib}/sphinx/
%{python2_sitelib}/Sphinx-%{version}-py%{python2_version}.egg-info/
%exclude %{_mandir}/man1/sphinx-*-%{python3_version}.1*
%{_mandir}/man1/*
%{_libexecdir}/python2-sphinx/
%{_modulesdir}/python-sphinx/python2-sphinx
%if !%{py3_default}
%{_modulesdir}/python-sphinx/.version
%endif
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
%if 0%{?with_python3}
%files -n python3-sphinx
%license LICENSE
%doc AUTHORS CHANGES EXAMPLES README.rst README.fedora
%{_bindir}/sphinx-*-3*
%{python3_sitelib}/sphinx/
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
%{_mandir}/man1/sphinx-*-%{python3_version}.1*
%{_libexecdir}/python3-sphinx/
%{_modulesdir}/python-sphinx/python3-sphinx
%if %{py3_default}
%{_modulesdir}/python-sphinx/.version
%endif
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.sh
%config(noreplace) %{_sysconfdir}/profile.d/zz-modules-python-sphinx.csh
%endif # with_python3
%files doc
%doc html reST
%changelog
* Thu Feb 07 2019 Alfredo Moralejo <amoralej@redhat.com> - 1:1.8.4-1
- Update to 1.8.4.
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.7.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.7.6-2
- Drop explicit locale setting for python3, use C.UTF-8 for python2
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
* Mon Jul 23 2018 Marcel Plch <mplch@redhat.com> - 1:1.7.6-1
- Update to 1.7.6
* Fri Jul 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-6
- Remove unused dependencies on xapian and simplejson
* Thu Jul 5 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.7.5-5
- Add patch to fix build if alabaster theme is installed
- Add patch for #1589868
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-4
- Enable tests
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-3
- Enable websupport
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-2
- Rebuilt for Python 3.7
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.7.5-1
- Update to 1.7.5 (bz#1570451)
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-5
- Rebuilt for Python 3.7
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-4
- Bootstrap for Python 3.7
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-3
- Bootstrap for Python 3.7
* Wed Apr 11 2018 Petr Viktorin <pviktori@redhat.com> - 1:1.7.2-2
- Conditionalize the ImageMagick build dependency & tests
* Wed Apr 11 2018 Petr Viktorin <pviktori@redhat.com> - 1:1.7.2-1
- Update to 1.7.2 (bz#1558968)
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.7.1-1
- Update to 1.7.1 (bz#1534802)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.6.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Jan 09 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.6-1
- Update to 1.6.6 (bz#1532435)
* Mon Dec 11 2017 Iryna Shcherbina <ishcherb@redhat.com> - 1:1.6.5-2
- Fix ambiguous Python 2 dependency declarations
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Mon Nov 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.5-1
- Update to 1.6.5 (bz#1508237)
* Mon Oct 09 2017 Troy Dawson <tdawson@redhat.com> - 1:1.6.4-2
- Cleanup spec file conditionals
* Tue Sep 26 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.4-1
- Update to 1.6.4 (bz#1426928)
* Wed Sep 20 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.3-3
- Provide the epoch tag in order to keep the upgrade path clean.
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jul 20 2017 Charalampos Stratakis <cstratak@redhat.com> - - 1.6.3-1
- Update to 1.6.3 (bz#1426928)
* Sat Feb 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-2
- Cleanup source files that should not be installed
- Fix the __init__.pyc that was byte compiled for the wrong python
* Fri Feb 17 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-1
- Update to 1.5.2
- Remove a few latex dependencies that are no longer needed
- Remove xapian patch; now in upstream tarball
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jan 31 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-5
- environment-modules is less featureful than Lmod.
- Select the default version in a different way since environment-modules
didn't understand the symlink
- Ignore error messsages in the shell startup script as environment-modules
prints an error message if a module has already been loaded. The command
is doing the right thing for this case except that it's also printing an
error message.
* Thu Jan 26 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-4
- Add recipe for setting the system default to the README.fedora
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-3
- Move the unversioned executables into the python2 package as they are now
using python2 to run
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-2
- Add README.fedora so people know how to use environment-modules to switch.
- Change the default to be the python2 version to match with the guidelines
- Switch to generic environment(modules) instead of Lmod specifically.
* Fri Dec 30 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.1-1
- Update to 1.5.1
* Fri Dec 30 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.9-2
- Remove alternatives. Alternatives should only be used for a very small
number of packages (system daemons which also have a compatible command line
interface).
- Use environment-modules to switch between the python2 and python3 packages
*but* be aware that no amount of manual switching can get this 100% right.
The code has to be fixed upstream, not in packaging.
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.9-1
- Update to 1.4.9
- Enable python3 tests
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.8-3
- Rebuild for Python 3.6
- Disable python3 tests for now
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-2
- Added tex(luatex85.sty) dependency to support TexLive 2016
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-1
- Update to 1.4.8
- Alternatives fails for scripts sometimes (bz#1382405)
* Sun Sep 4 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-2
- Alternatives fails for man pages due to existing files
* Fri Sep 2 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-1
- Update to 1.4.6 (bz#1370810)
- Fix unversioned Obsoletes
- Add alternatives slaves for man pages
* Fri Aug 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.5-1
- Update to 1.4.5 (bz#1356336)
- Remove Recommends for latex, locale, and doc subpackages (bz#1366624)
- Remove Requires from locale subpackage (bz#1366624)
- Set executable scripts via alternatives (bz#1321413)
- Change graphviz Requires to Recommends (bz#1366706)
* Sun Jul 03 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-2
- doc and locale no longer specifically require python2-sphinx
- Colapsed python3-sphinx-latex into python-latex
* Sun Jun 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-1
- Updated to 1.4.4
- Added python-sphinx-locale for common locale files
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Nov 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-4
- Obsolete napoleon extension, it is now packaged with sphinx (#1286275)
- Rename python2-Sphinx to python2-sphinx
- Add conflicts to disallow parallel installation of different versions,
which causes file conflicts because of the shared documentation files.
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-3
- Restore using python2 scripts by default (#1285535)
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-2
- Fix requirements of python2- subpackage
- Provide sphinx-*-{3.5,3} symlinks for each script
* Tue Nov 24 2015 Julien Enselme <jujens@jujens.eu> - 1.3.1-1
- Update to 1.3.1 (#1136284)
- Update to new guidelines
- Make the default executable use python3
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.2.3-5
- Rebuilt for Python3.5 rebuild
- add patch to reflect that Python3.5 dropped HTMLParserError
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-4
- Fix line encoding of bundled jquery.js
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-3
- Re-introduce LaTeX subpackage, solely for pulling in LaTeX dependencies
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-1
- Update to 1.2.3
- Mark license file with %%license instead of %%doc
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-10
- Complete LaTeX builder deps (fixes bz#882166)
- Make test output verbose
- Add BRs needed to enable all tests
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-9
- python3-sphinx package also Provides: python3-sphinx-latex
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-8
- If a separate LaTeX subpackage is not generated, the main package should have
a virtual Provides: for it (bz#1187989)
* Tue Jan 27 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-7
- Disable separate LaTeX builder for now (bz#1185574)
* Thu Jan 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-6
- Split off LaTeX builder into its own subpackages, to remove TeXLive
dependencies from the main package.
Thanks to Robert Kuska <rkuska@redhat.com> for feedback
- Clean up python3-sphinx's locale files, they ended up in the python2 package.
Share the locale files in /usr/share instead
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-4
- Don't own the -3 scripts by python 2 package
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-3
- Add sphinx-*-3 links to scripts
Resolves: #1098109
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-2
- Rebuild for Python 3.4
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-1
- Update to 1.2.2
* Thu Feb 13 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.1-1
- Update to 1.2.1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sat Mar 9 2013 Michel Salim <salimma@fedoraproject.org> - 1.1.3-7
- Fix inheritance_diagram quoting bug, exposed by the newer, stricter dot
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Aug 21 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.3-5
- Fix for use of sphinx's manpage writer with docutils-0.10
* Mon Aug 6 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-4
- Rebuild for Python 3.3
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.3-3
- remove rhel logic from with_python3 conditional
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Apr 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-1
- Update to 1.1.3
* Sun Feb 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.2-5
- Move python3 runtime dependencies to the right subpackage
- Properly exclude python3 binaries
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Dec 17 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-3
- BR on texlive-latex for LaTeX tests
* Thu Dec 8 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-2
- Enable python3 subpackage
* Mon Nov 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
- Update to upstream 1.1.2
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Jan 18 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.7-1
- Update to upstream 1.0.7
* Mon Jan 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.6-1
- Update to upstream 1.0.6
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-3
- Fix -doc Makefile to allow regeneration of .rst files
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-2
- Actually include *.js locale files
- Generate manpages
* Fri Sep 17 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-1
- Update to 1.0.4
- Remove BuildRoot and %%clean declarations
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-0.1.b2.1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.b2
- Update to 1.0 beta 2
- Fixes problem building html documentation in non-English locales
* Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.b1
- Update to 1.0 beta 1
* Tue May 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.6.6-1
- Update to 0.6.6
* Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2
- Few minor tweaks to Gareth's spec file update
* Mon May 10 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 0.6.5-1.hp
- Update to 0.6.5
- Initial import of python-sphinx from Fedora Rawhide for use in HP CMS
- Enforce that Sphinx requires Python 2.4 or later via an explicit BR
- Minor tweaks to spec file
- Move language files to %%{_datadir}, idea borrowed from Debian's sphinx
package
- Deliver man pages for sphinx-build & sphinx-quickstart
- Deliver rst documentation files to reST directory in doc sub-package
- Add %%check section for Python2 and add BR on python-nose
* Wed Jan 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
- Update to 0.6.4
- Fixes a problem using autodoc with pylons projects.
* Fri Sep 4 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.3-1
- Update to 0.6.3
* Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.2-1
- Update to 0.6.2 -- upstream bugfix requested inside bz#512438
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Jun 05 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-2
- Add a patch to use our own setuptools package
* Fri Apr 17 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1
- Update to 0.6.1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Jan 2 2009 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1
- Update to 0.5.1
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
- Rebuild for Python 2.6
* Mon Nov 24 2008 Michel Salim <salimma@fedoraproject.org> - 0.5-1
- Update to 0.5
* Fri Oct 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1
- Update to 0.4.3
* Wed Aug 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1.1
- Fix for EL-5 build.
* Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.2-1
- Update to 0.4.2
* Mon May 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.3-1
- Update to 0.3
* Fri May 2 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.61950-3
- Split documentation into subpackage
- Exclude C files (not built by default anyway)
* Wed Apr 16 2008 José Matos <jamatos@fc.up.pt> - 0.1.61950-2
- Build html documentation, include it and include the rst
documentation.
* Thu Mar 27 2008 Michel Salim <michel.sylvan@gmail.com> 0.1.61950-1
- Initial package

View File

@@ -0,0 +1,59 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global oname argparse
Summary: Optparse inspired command line parser for Python
Name: python2-argparse
Version: 1.4.0
Release: 1%{?dist}
License: Python
Group: Development/Languages
URL: http://code.google.com/p/argparse/
Source0: http://argparse.googlecode.com/files/argparse-%{version}.tar.gz
BuildRequires: python2-setuptools
BuildRequires: dos2unix
BuildArch: noarch
%description
The argparse module is an optparse-inspired command line parser that
improves on optparse by:
* handling both optional and positional arguments
* supporting parsers that dispatch to sub-parsers
* producing more informative usage messages
* supporting actions that consume any number of command-line args
* allowing types and actions to be specified with simple callables
instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS
as well as including a number of other more minor improvements on the
optparse API.
%prep
%setup -q -n %{oname}-%{version}
dos2unix -k README.txt NEWS.txt
%{__rm} -rf doc/source
%build
%{__python2} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python2} setup.py install --skip-build --root %{buildroot}
%check
pushd test
PYTHONPATH=../ %{__python} test_%{oname}.py
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%defattr(-, root, root, -)
%doc README.txt LICENSE.txt NEWS.txt doc/*
%{python2_sitelib}/*
%changelog
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First build, it's required by powerline_shell package.

View File

@@ -0,0 +1,112 @@
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: python2-whisper
Version: 1.0.2
Release: 1%{?dist}
Summary: Simple database library for storing time-series data
Group: Development/Libraries
License: ASL 2.0
URL: https://github.com/graphite-project
Source0: whisper-%{version}.tar.gz
Source10: rrd2whisper.1
Source11: whisper-create.1
Source12: whisper-dump.1
Source13: whisper-fetch.1
Source14: whisper-info.1
Source15: whisper-merge.1
Source16: whisper-resize.1
Source17: whisper-set-aggregation-method.1
Source18: whisper-update.1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
Whisper is a fixed-size database, similar in design and purpose to RRD
(round-robin-database). It provides fast, reliable storage of numeric
data over time. Whisper allows for higher resolution (seconds per point)
of recent data to degrade into lower resolutions for long-term retention
of historical data.
%prep
%setup -q -n whisper-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# man pages
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE13} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE14} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE15} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE16} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE17} $RPM_BUILD_ROOT%{_mandir}/man1
install -D -p -m0644 %{SOURCE18} $RPM_BUILD_ROOT%{_mandir}/man1
# remove .py suffix
for i in $RPM_BUILD_ROOT%{_bindir}/*.py; do
mv ${i} ${i%%.py}
done
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%doc LICENSE
%{_bindir}/rrd2whisper
%{_bindir}/whisper-create
%{_bindir}/whisper-dump
%{_bindir}/whisper-fetch
%{_bindir}/whisper-fill
%{_bindir}/whisper-info
%{_bindir}/whisper-merge
%{_bindir}/whisper-resize
%{_bindir}/whisper-set-aggregation-method
%{_bindir}/whisper-update
%{_bindir}/find-corrupt-whisper-files
%{_bindir}/update-storage-times
%{_bindir}/whisper-auto-resize
%{_bindir}/whisper-auto-update
%{_bindir}/whisper-diff
%{_bindir}/whisper-set-xfilesfactor
%{_mandir}/man1/rrd2whisper.1*
%{_mandir}/man1/whisper-create.1*
%{_mandir}/man1/whisper-dump.1*
%{_mandir}/man1/whisper-fetch.1*
%{_mandir}/man1/whisper-info.1*
%{_mandir}/man1/whisper-merge.1*
%{_mandir}/man1/whisper-resize.1*
%{_mandir}/man1/whisper-set-aggregation-method.1*
%{_mandir}/man1/whisper-update.1*
%{python_sitelib}/whisper.py*
%if 0%{?fedora} || 0%{?rhel} > 5
%{python_sitelib}/whisper-*-py?.?.egg-info
%endif
%changelog
* Sat Sep 16 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
- First inital release for Fedora 26

View File

@@ -0,0 +1,70 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global oname argparse
%define __python /usr/bin/python3
Summary: Optparse inspired command line parser for Python
Name: python3-argparse
Version: 1.4.0
Release: 1%{?dist}
License: Python
Group: Development/Languages
URL: http://code.google.com/p/argparse/
Source0: http://argparse.googlecode.com/files/argparse-%{version}.tar.gz
BuildRequires: python3-setuptools
BuildRequires: dos2unix
BuildArch: noarch
%description
The argparse module is an optparse-inspired command line parser that
improves on optparse by:
* handling both optional and positional arguments
* supporting parsers that dispatch to sub-parsers
* producing more informative usage messages
* supporting actions that consume any number of command-line args
* allowing types and actions to be specified with simple callables
instead of hacking class attributes like STORE_ACTIONS or CHECK_METHODS
as well as including a number of other more minor improvements on the
optparse API.
%prep
%setup -q -n %{oname}-%{version}
dos2unix -k README.txt NEWS.txt
%{__rm} -rf doc/source
%build
%{__python3} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python3} setup.py install --skip-build --root %{buildroot}
%check
pushd test
PYTHONPATH=../ %{__python} test_%{oname}.py
rm -rf %{buildroot}%{python3_sitelib}/__pycache__
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%files
%defattr(-, root, root, -)
%doc README.txt LICENSE.txt NEWS.txt doc/*
%{python3_sitelib}/*
%changelog
* Fri May 21 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 34.
* Sat Oct 31 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 33.
* Sat May 2 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build on Fedora 32.
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- First build, it's required by powerline_shell package.

View File

@@ -0,0 +1,108 @@
#
# spec file for package tilesweep
#
%define geouser geo
Name: tilesweep
Summary: An OpenStreetMap tile server
Url: https://github.com/seemk/TileSweep
Version: 0.1.0
Release: 1%{?dist}
License: BSD
Group: System Environment/Daemons
Source0: %{name}.tgz
Source1: %{name}-conf.ini
Source2: %{name}-tmpfiles.conf
Source3: %{name}-systemd.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mapnik-devel >= 3.0.12
%description
An OpenStreetMap tile server.
Features:
- Prerendering based on polygon and zoom levels selection.
- Offline tile cache (tiles can be prerendered and served without Mapnik)
- Efficient disk usage
%prep
%setup -qn %{name}
%build
pushd %{name}
mkdir build
cd build
cmake ..
make
popd
%install
pushd %{name}/build/bundle
install -d %{buildroot}/opt/%{name}
install -d %{buildroot}/opt/%{name}/ui
install -d %{buildroot}%{_sysconfdir}/systemd
install -d %{buildroot}%{_sysconfdir}/tmpfiles.d
install %{name} %{buildroot}/opt/%{name}/%{name}
install ui/app.js %{buildroot}/opt/%{name}/ui/app.js
install ui/app.css %{buildroot}/opt/%{name}/ui/app.css
install ui/index.html %{buildroot}/opt/%{name}/ui/index.html
install %{S:1} %{buildroot}/opt/%{name}/conf.ini
install %{S:2} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}
install %{S:3} %{buildroot}%{_sysconfdir}/systemd/%{name}.service
popd
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%pre
getent group %{geouser} > /dev/null || groupadd -r %{geouser}
getent passwd %{geouser} > /dev/null || \
useradd -m -g %{geouser} -s /bin/bash \
-c "Geo Mapnik user" %{geouser}
%post
%if 0%{?using_systemd}
%if 0%{?systemd_macro_scriptlet}
if [ $1 -eq 1 ]; then
%systemd_post %{name}.service
fi
%firewalld_reload
%endif
%endif
%preun
%if 0%{?using_systemd}
if [ $1 -eq 0 ]; then
systectl stop %{name}.service
fi
%endif
%postun
%if 0%{?using_systemd}
%if 0%{?systemd_macro_scriptlet}
if [ $1 -eq 1 ]; then
%systemd_postun_with_restart %{name}.service
%firewalld_reload
fi
%endif
%endif
%files
%defattr(-,root,root,-)
%doc COPYING README.md
/opt/%{name}/%{name}
%dir /opt/%{name}/ui
/opt/%{name}/ui/*
%dir %{_rundir}/%{name}
%config(noreplace) /opt/%{name}/conf.ini
%config %{_sysconfdir}/tmpfiles.d/%{name}
%changelog
* Thu May 21 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial setup.

View File

@@ -0,0 +1,79 @@
%define debug %nil
%define debug_package %nil
%define oname XnView
%global DONT_REMOVE_RPATH 1
# don't check for rpath:
%global __arch_install_post /usr/lib/rpm/check-buildroot
Name: xnview
Version: 0.93.1
Release: 1%{?dist}
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
Source0: https://download.xnview.com/XnViewMP-linux.tgz
%endif
Source1000: %{name}.rpmlintrc
License: Free
Group: Graphics
Prefix: /opt
Requires: bzip2-libs
Provides: libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5EglFSDeviceIntegration.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5Gui.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5Multimedia.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5Network.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5PrintSupport.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQt5XcbQpa.so.5(Qt_5_PRIVATE_API)(64bit)
Provides: libQtAV.so.1()(64bit)
Provides: libQtAVWidgets.so.1()(64bit)
Provides: libicudata.so.56()(64bit)
Provides: libicui18n.so.56()(64bit)
Provides: libicuio.so.56()(64bit)
Provides: libicule.so.56()(64bit)
Provides: libiculx.so.56()(64bit)
Provides: libicutest.so.56()(64bit)
Provides: libicutu.so.56()(64bit)
Provides: libicuuc.so.56()(64bit)
Provides: libqgsttools_p.so.1()(64bit)
%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}
cd %{_libdir}
ln -s libbz2.so.1 libbz2.so.1.0
%postun
rm -f %{_bindir}/%{name}
rm -f %{_libdir}libbz2.so.1.0
%files
%doc license.txt
%{prefix}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%changelog
* Sat Dec 8 2018 User <daniel.steiner@greenmail.ch> 0.92-1
- First initial releas on Fedora 29 (no source code available)