Bogus date fixed in polemarch. Not needed spec files moved to archive
This commit is contained in:
39
fedora/SPECS/archive/bpm-tools.spec
Normal file
39
fedora/SPECS/archive/bpm-tools.spec
Normal file
@@ -0,0 +1,39 @@
|
||||
Name: bpm-tools
|
||||
Version: 0.3
|
||||
Release: 1%{?dist}
|
||||
Summary: MP3 tempo analyzis tool
|
||||
|
||||
Group: Applications/Multimedia
|
||||
License: GPL-v2
|
||||
URL: http://www.pogo.org.uk/~mark/bpm-tools/
|
||||
Source0: %{name}-%{version}.tgz
|
||||
|
||||
%description
|
||||
The bpm-tools software is the result of some experiments I did into automatically
|
||||
calculating and tagging the tempo (in beats-per-minute) of music files.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %name
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make install PREFIX=%{buildroot}%{_prefix}
|
||||
|
||||
|
||||
%files
|
||||
%doc README COPYING
|
||||
%{_bindir}/bpm
|
||||
%{_bindir}/bpm-graph
|
||||
%{_bindir}/bpm-tag
|
||||
%{_mandir}/man1/bpm*.1.gz
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Mar 18 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Initial package built.
|
||||
|
||||
225
fedora/SPECS/archive/certbot.spec
Normal file
225
fedora/SPECS/archive/certbot.spec
Normal file
@@ -0,0 +1,225 @@
|
||||
%global oldpkg letsencrypt
|
||||
|
||||
# On fedora use python3 for certbot
|
||||
%if 0%{?fedora}
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%endif
|
||||
|
||||
|
||||
Name: certbot
|
||||
Version: 0.21.0
|
||||
Release: 1%{?dist}
|
||||
Summary: A free, automated certificate authority client
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://pypi.python.org/pypi/certbot
|
||||
Source0: https://files.pythonhosted.org/packages/source/c/%{name}/%{name}-%{version}.tar.gz
|
||||
|
||||
Source10: certbot-renew-systemd.service
|
||||
Source11: certbot-renew-systemd.timer
|
||||
Source12: certbot-sysconfig-certbot
|
||||
Source13: certbot-README.fedora
|
||||
|
||||
%if 0%{?rhel}
|
||||
Patch0: allow-old-setuptools.patch
|
||||
%endif
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%if %{with python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-future
|
||||
%endif
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-future
|
||||
|
||||
# For the systemd macros
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd
|
||||
|
||||
# Need to label the httpd rw stuff correctly until base selinux policy updated
|
||||
Requires(post): %{_sbindir}/semanage
|
||||
Requires(postun): %{_sbindir}/semanage
|
||||
|
||||
# On F26+ use python3
|
||||
%if 0%{?fedora} >= 26
|
||||
Requires: python3-certbot = %{version}-%{release}
|
||||
%else
|
||||
Requires: python2-certbot = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
Obsoletes: %{oldpkg} < 0.6.0
|
||||
Provides: %{oldpkg} = %{version}-%{release}
|
||||
|
||||
# Required for documentation
|
||||
BuildRequires: python2-sphinx
|
||||
BuildRequires: python2-sphinx_rtd_theme
|
||||
BuildRequires: python2-repoze-sphinx-autointerface
|
||||
|
||||
#Require for testing
|
||||
BuildRequires: python-nose-xcover
|
||||
BuildRequires: python-pep8
|
||||
BuildRequires: python2-tox
|
||||
BuildRequires: python2-mock
|
||||
BuildRequires: python2-configargparse >= 0.10.0
|
||||
BuildRequires: python2-zope-interface
|
||||
BuildRequires: python2-zope-component
|
||||
BuildRequires: python2-requests
|
||||
BuildRequires: python2-dialog >= 3.3.0
|
||||
BuildRequires: python2-psutil >= 2.1.0
|
||||
BuildRequires: python-parsedatetime
|
||||
BuildRequires: python2-configobj
|
||||
BuildRequires: python2-configargparse >= 0.10.0
|
||||
BuildRequires: python2-acme >= 0.20.0
|
||||
|
||||
%if %{with python3}
|
||||
#Require for testing
|
||||
BuildRequires: python3-nose-xcover
|
||||
BuildRequires: python3-pep8
|
||||
BuildRequires: python3-tox
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-configargparse >= 0.10.0
|
||||
BuildRequires: python3-zope-interface
|
||||
BuildRequires: python3-zope-component
|
||||
BuildRequires: python3-requests
|
||||
BuildRequires: python3-dialog >= 3.3.0
|
||||
BuildRequires: python3-psutil >= 2.1.0
|
||||
BuildRequires: python3-parsedatetime
|
||||
BuildRequires: python3-configobj
|
||||
BuildRequires: python3-configargparse >= 0.10.0
|
||||
BuildRequires: python3-acme >= 0.20.0
|
||||
%endif
|
||||
|
||||
%description
|
||||
certbot is a free, automated certificate authority that aims
|
||||
to lower the barriers to entry for encrypting all HTTP traffic on the internet.
|
||||
|
||||
%package -n python2-certbot
|
||||
Requires: python2-configargparse >= 0.10.0
|
||||
Requires: python2-dialog >= 3.3.0
|
||||
Requires: python-parsedatetime
|
||||
Requires: python2-mock
|
||||
Requires: python2-zope-interface
|
||||
Requires: python2-zope-component
|
||||
Requires: python2-psutil >= 2.1.0
|
||||
Requires: python2-configobj
|
||||
Requires: python2-future
|
||||
Requires: python2-acme >= 0.20.0
|
||||
Obsoletes: python2-%{oldpkg} < 0.6.0
|
||||
Provides: python2-%{oldpkg} = %{version}-%{release}
|
||||
Obsoletes: python-%{oldpkg} < 0.6.0
|
||||
Provides: python-%{oldpkg} = %{version}-%{release}
|
||||
#Recommends: certbot-doc
|
||||
Summary: Python 2 libraries used by certbot
|
||||
%{?python_provide:%python_provide python2-certbot}
|
||||
|
||||
%description -n python2-certbot
|
||||
The python2 libraries to interface with certbot
|
||||
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python3-certbot
|
||||
Requires: python3-configargparse >= 0.10.0
|
||||
Requires: python3-dialog >= 3.3.0
|
||||
Requires: python3-parsedatetime
|
||||
Requires: python3-mock
|
||||
Requires: python3-zope-interface
|
||||
Requires: python3-zope-component
|
||||
Requires: python3-psutil >= 2.1.0
|
||||
Requires: python3-future
|
||||
Requires: python3-configobj
|
||||
Requires: python3-acme >= 0.20.0
|
||||
Summary: Python 3 libraries used by certbot
|
||||
%{?python_provide:%python_provide python3-certbot}
|
||||
|
||||
%description -n python3-certbot
|
||||
The python3 libraries to interface with certbot
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
%endif
|
||||
|
||||
# build documentation
|
||||
# %{__python2} setup.py install --user
|
||||
# make -C docs man PATH=${HOME}/.local/bin:$PATH
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
mv %{buildroot}%{_bindir}/certbot{,-2}
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
mv %{buildroot}%{_bindir}/certbot{,-3}
|
||||
%endif
|
||||
# Add compatibility symlink as requested by upstream conference call
|
||||
ln -sf /usr/bin/certbot %{buildroot}/usr/bin/%{oldpkg}
|
||||
# Put the man pages in place
|
||||
# install -pD -t %{buildroot}%{_mandir}/man1 docs/_build/man/*1*
|
||||
# On F26+ use python3
|
||||
%if 0%{?fedora} >= 26
|
||||
ln -s %{_bindir}/certbot-3 %{buildroot}%{_bindir}/certbot
|
||||
%else
|
||||
ln -s %{_bindir}/certbot-2 %{buildroot}%{_bindir}/certbot
|
||||
%endif
|
||||
install -Dm 0644 %{SOURCE10} %{buildroot}%{_unitdir}/certbot-renew.service
|
||||
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/certbot-renew.timer
|
||||
install -Dm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/certbot
|
||||
cp %{SOURCE13} README.fedora
|
||||
|
||||
%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}/certbot-2
|
||||
%if %{with python3}
|
||||
grep -q %{__python3} %{buildroot}%{_bindir}/certbot-3
|
||||
%endif
|
||||
|
||||
# The base selinux policies don't handle the certbot directories yet so set them up manually
|
||||
%post
|
||||
semanage fcontext -a -t cert_t '%{_sysconfdir}/(letsencrypt|certbot)/(live|archive)(/.*)?'
|
||||
restorecon -R %{_sysconfdir}/letsencrypt || :
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc README.rst CHANGES.rst CONTRIBUTING.md README.fedora
|
||||
%{_bindir}/certbot
|
||||
%{_bindir}/%{oldpkg}
|
||||
# %doc %attr(0644,root,root) %{_mandir}/man1/%{name}*
|
||||
# project uses old letsencrypt dir for compatibility
|
||||
%ghost %dir %{_sysconfdir}/%{oldpkg}
|
||||
%ghost %dir %{_sharedstatedir}/%{oldpkg}
|
||||
%config %{_sysconfdir}/sysconfig/certbot
|
||||
%{_unitdir}/certbot-renew.service
|
||||
%{_unitdir}/certbot-renew.timer
|
||||
|
||||
%files -n python2-certbot
|
||||
%license LICENSE.txt
|
||||
%{python2_sitelib}/%{name}
|
||||
%{python2_sitelib}/%{name}-%{version}*.egg-info
|
||||
%{_bindir}/certbot-2
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-certbot
|
||||
%license LICENSE.txt
|
||||
%{python3_sitelib}/%{name}
|
||||
%{python3_sitelib}/%{name}-%{version}*.egg-info
|
||||
%{_bindir}/certbot-3
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Jan 21 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 0.21.0-1
|
||||
- Initial build for Fedora 27
|
||||
|
||||
67
fedora/SPECS/archive/dcadec.spec
Normal file
67
fedora/SPECS/archive/dcadec.spec
Normal file
@@ -0,0 +1,67 @@
|
||||
Name: dcadec
|
||||
Version: 0.2.0
|
||||
Release: 1%{?dist}
|
||||
Summary: dcadec is a free DTS Coherent Acoustics decoder
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/foo86/dcadec
|
||||
Source0: https://github.com/foo86/dcadec/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
|
||||
%description
|
||||
dcadec is a free DTS Coherent Acoustics decoder with support for HD extensions
|
||||
|
||||
|
||||
%package libs
|
||||
Summary: Library files for dcadec
|
||||
|
||||
|
||||
%description libs
|
||||
%{summary}
|
||||
|
||||
|
||||
%package libs-devel
|
||||
Summary: Development files for dcadec
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%description libs-devel
|
||||
%{summary}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
CFLAGS=-fPIC make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
PREFIX=/usr LIBDIR=%{_libdir} CONFIG_SHARED=1 %make_install
|
||||
cp -a libdcadec/libdcadec.so.0 %{buildroot}%{_libdir}/
|
||||
chmod +x %{buildroot}%{_libdir}/libdcadec.so.0.1.0
|
||||
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_bindir}/dcadec
|
||||
|
||||
%files libs
|
||||
%license COPYING.LGPLv2.1
|
||||
%{_libdir}/libdcadec.so.0
|
||||
%{_libdir}/libdcadec.so.0.1.0
|
||||
|
||||
%files libs-devel
|
||||
%{_includedir}/libdcadec
|
||||
%{_libdir}/libdcadec.so
|
||||
%{_libdir}/pkgconfig/dcadec.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jan 23 2016 Michael Cronenworth <mike@cchtml.com> - 0.2.0-1
|
||||
- New upstream version
|
||||
|
||||
* Sun Dec 06 2015 Michael Cronenworth <mike@cchtml.com> - 0.1.0-1
|
||||
- Initial package
|
||||
|
||||
135
fedora/SPECS/archive/graphite-web.spec
Normal file
135
fedora/SPECS/archive/graphite-web.spec
Normal file
@@ -0,0 +1,135 @@
|
||||
Name: graphite-web
|
||||
Version: 1.0.2
|
||||
Release: 3%{?dist}
|
||||
|
||||
Summary: A Django web application for enterprise scalable realtime graphing
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/graphite-project/graphite-web
|
||||
|
||||
%define pversion %{version}
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: graphite-web-vhost.conf
|
||||
Source2: graphite-web-README.fedora
|
||||
Source10: %{name}.logrotate
|
||||
Patch0: 0_%{name}-%{pversion}-django-update.patch
|
||||
Patch1: 1_%{name}-%{pversion}-Amend-default-filesystem-locations.patch
|
||||
Patch2: 2_%{name}-%{pversion}-Disable-internal-log-rotation.patch
|
||||
Patch3: 3_%{name}-%{pversion}-Static_url_example.patch
|
||||
Patch4: 4_%{name}-%{pversion}-Fix-build-index.sh-variables.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
|
||||
Requires: dejavu-sans-fonts
|
||||
Requires: dejavu-serif-fonts
|
||||
Requires: django-tagging
|
||||
Requires: mod_wsgi
|
||||
Requires: pycairo
|
||||
Requires: pyparsing
|
||||
Requires: python-simplejson
|
||||
Requires: python2-carbon
|
||||
Requires: python2-whisper >= %{version}
|
||||
Requires: python2-whitenoise
|
||||
Requires: python-memcached
|
||||
Requires: pytz
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
Requires: python-django >= 1.3
|
||||
%else
|
||||
Requires: Django >= 1.3
|
||||
%endif
|
||||
|
||||
Obsoletes: %{name}-selinux < 0.9.12-7
|
||||
|
||||
|
||||
%description
|
||||
Graphite consists of a storage backend and a web-based visualization frontend.
|
||||
Client applications send streams of numeric time-series data to the Graphite
|
||||
backend (called carbon), where it gets stored in fixed-size database files
|
||||
similar in design to RRD. The web frontend provides user interfaces
|
||||
for visualizing this data in graphs as well as a simple URL-based API for
|
||||
direct graph generation.
|
||||
|
||||
Graphite's design is focused on providing simple interfaces (both to users and
|
||||
applications), real-time visualization, high-availability, and enterprise
|
||||
scalability.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n graphite-web-%{version}
|
||||
rm -rf webapp/graphite/thirdparty
|
||||
find -type f -iname '*.swf' -delete
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
|
||||
install -m0644 %{SOURCE2} README.fedora
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
||||
|
||||
%install
|
||||
%py2_install \
|
||||
--install-lib=%{python2_sitelib} \
|
||||
--install-data=%{_datadir}/graphite \
|
||||
--install-scripts=%{_bindir}
|
||||
|
||||
mkdir -p %{buildroot}%{_localstatedir}/lib/graphite-web
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/graphite-web
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/graphite-web
|
||||
|
||||
install -Dp -m0644 webapp/graphite/local_settings.py.example \
|
||||
%{buildroot}%{_sysconfdir}/graphite-web/local_settings.py
|
||||
ln -s %{_sysconfdir}/graphite-web/local_settings.py \
|
||||
%{buildroot}%{python_sitelib}/graphite/local_settings.py
|
||||
install -Dp -m0644 conf/dashboard.conf.example \
|
||||
%{buildroot}%{_sysconfdir}/graphite-web/dashboard.conf
|
||||
install -Dp -m0644 %{SOURCE1} \
|
||||
%{buildroot}%{_sysconfdir}/httpd/conf.d/graphite-web.conf
|
||||
install -Dp -m0644 conf/graphite.wsgi.example \
|
||||
%{buildroot}%{_datadir}/graphite/graphite-web.wsgi
|
||||
|
||||
# Log rotation.
|
||||
install -D -p -m0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
|
||||
# Remove unneeded binaries.
|
||||
rm -f %{buildroot}%{_bindir}/run-graphite-devel-server.py
|
||||
|
||||
# Rename build-index.sh.
|
||||
mv %{buildroot}%{_bindir}/build-index %{buildroot}%{_bindir}/graphite-build-index
|
||||
rm %{buildroot}%{_bindir}/build-index.sh
|
||||
|
||||
# Fix permissions.
|
||||
chmod 0644 conf/graphite.wsgi.example
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.fedora conf/* examples/*
|
||||
|
||||
%dir %{_sysconfdir}/graphite-web
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/graphite-web.conf
|
||||
%config(noreplace) %{_sysconfdir}/graphite-web/dashboard.conf
|
||||
%config(noreplace) %{_sysconfdir}/graphite-web/local_settings.py*
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
|
||||
%{_bindir}/graphite-build-index
|
||||
%{_datadir}/graphite
|
||||
%attr(0755,apache,apache) %dir %{_localstatedir}/lib/graphite-web
|
||||
%attr(0755,apache,apache) %dir %{_localstatedir}/log/graphite-web
|
||||
|
||||
%{python_sitelib}/graphite/
|
||||
%{python_sitelib}/graphite_web-*-py?.?.egg-info
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 16 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- First build for Fedora 26
|
||||
|
||||
46
fedora/SPECS/archive/hstr.spec
Normal file
46
fedora/SPECS/archive/hstr.spec
Normal file
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# spec file for package hstr
|
||||
#
|
||||
|
||||
Name: hstr
|
||||
%define pkgname hh
|
||||
Version: 1.3
|
||||
Release: 0%{?dist}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: Demonstrates a simple TCP/IP echo server, using the Berkeley Sockets API.
|
||||
Url: http://www.paulgriffiths.net/program/c/echoserv.php
|
||||
Source: %{pkgname}-%{version}-src.tgz
|
||||
License: GPL-2.0
|
||||
Group: System/Shells
|
||||
BuildRequires: readline-devel
|
||||
|
||||
%description
|
||||
A command line utility that brings improved BASH command completion from the history.
|
||||
It aims to make completion easier and more efficient than Ctrl-r.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
%build
|
||||
%{configure}
|
||||
%{__make}
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/profile.d
|
||||
# just generate the default configuration for bash environment:
|
||||
./src/hh --show-configuration > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
|
||||
%{make_install}
|
||||
|
||||
%post
|
||||
echo "To enable all options, just logout and login again (PROFILEREAD)"
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_mandir}/man1/hh.1.gz
|
||||
%{_bindir}/%{pkgname}
|
||||
%config %{_sysconfdir}/profile.d/%{name}.sh
|
||||
|
||||
%changelog
|
||||
* Mon Apr 7 2014 Daniel Steiner <elpito@bluewin.ch>
|
||||
- Initial setup.
|
||||
755
fedora/SPECS/archive/icinga2.spec
Normal file
755
fedora/SPECS/archive/icinga2.spec
Normal file
@@ -0,0 +1,755 @@
|
||||
#/******************************************************************************
|
||||
# * Icinga 2 *
|
||||
# * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or *
|
||||
# * modify it under the terms of the GNU General Public License *
|
||||
# * as published by the Free Software Foundation; either version 2 *
|
||||
# * of the License, or (at your option) any later version. *
|
||||
# * *
|
||||
# * This program is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
# * GNU General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU General Public License *
|
||||
# * along with this program; if not, write to the Free Software Foundation *
|
||||
# * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||
# ******************************************************************************/
|
||||
|
||||
%define revision 1
|
||||
|
||||
# make sure that _rundir is working on older systems
|
||||
%if ! %{defined _rundir}
|
||||
%define _rundir %{_localstatedir}/run
|
||||
%endif
|
||||
|
||||
%define _libexecdir %{_prefix}/lib/
|
||||
|
||||
%if "%{_vendor}" == "redhat"
|
||||
%define apachename httpd
|
||||
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
|
||||
%define apacheuser apache
|
||||
%define apachegroup apache
|
||||
%if 0%{?el5}%{?el6}
|
||||
%define use_systemd 0
|
||||
%if %(uname -m) != "x86_64"
|
||||
%define march_flag -march=i686
|
||||
%endif
|
||||
%else
|
||||
# fedora and el>=7
|
||||
%define use_systemd 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
%define apachename apache2
|
||||
%define apacheconfdir %{_sysconfdir}/apache2/conf.d
|
||||
%define apacheuser wwwrun
|
||||
%define apachegroup www
|
||||
%if 0%{?suse_version} >= 1310
|
||||
%define use_systemd 1
|
||||
%else
|
||||
%define use_systemd 0
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define icinga_user icinga
|
||||
%define icinga_group icinga
|
||||
%define icingacmd_group icingacmd
|
||||
%define icingaweb2name icingaweb2
|
||||
%define icingaweb2version 2.0.0
|
||||
|
||||
%define icingaclassicconfdir %{_sysconfdir}/icinga
|
||||
|
||||
%define logmsg logger -t %{name}/rpm
|
||||
|
||||
Summary: Network monitoring application
|
||||
Name: icinga2
|
||||
Version: 2.6.3
|
||||
Release: %{revision}%{?dist}
|
||||
License: GPL-2.0+
|
||||
Group: Applications/System
|
||||
Source: icinga2.tar.gz
|
||||
URL: https://www.icinga.com/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: %{name}-bin = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Meta package for Icinga 2 Core, DB IDO and Web.
|
||||
|
||||
%package bin
|
||||
Summary: Icinga 2 binaries and libraries
|
||||
Group: Applications/System
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
PreReq: permissions
|
||||
Provides: monitoring_daemon
|
||||
Recommends: monitoring-plugins
|
||||
%if 0%{?suse_version} >= 1310
|
||||
BuildRequires: libyajl-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: ncurses-devel
|
||||
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
||||
BuildRequires: gcc48-c++
|
||||
BuildRequires: libstdc++48-devel
|
||||
BuildRequires: libopenssl1-devel
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: openssl-devel
|
||||
%endif
|
||||
BuildRequires: cmake
|
||||
BuildRequires: flex >= 2.5.35
|
||||
BuildRequires: bison
|
||||
BuildRequires: make
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: wxGTK3-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?build_icinga_org} && "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
# el5 and el6 require packages.icinga.com
|
||||
BuildRequires: boost153-devel
|
||||
%else
|
||||
%if 0%{?build_icinga_org} && "%{_vendor}" == "suse" && 0%{?suse_version} < 1310
|
||||
# sles 11 sp3 requires packages.icinga.com
|
||||
BuildRequires: boost153-devel
|
||||
%else
|
||||
BuildRequires: boost-devel >= 1.41
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
BuildRequires: systemd
|
||||
Requires: systemd
|
||||
%endif
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description bin
|
||||
Icinga 2 is a general-purpose network monitoring application.
|
||||
Provides binaries for Icinga 2 Core.
|
||||
|
||||
%package common
|
||||
Summary: Common Icinga 2 configuration
|
||||
Group: Applications/System
|
||||
%if "%{_vendor}" == "redhat"
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): shadow-utils
|
||||
%endif
|
||||
%if "%{_vendor}" == "suse"
|
||||
Recommends: logrotate
|
||||
%endif
|
||||
|
||||
%description common
|
||||
Provides common directories, uid and gid among Icinga 2 related
|
||||
packages.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for Icinga 2
|
||||
Group: Applications/System
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
Provides documentation for Icinga 2.
|
||||
|
||||
|
||||
%package libs
|
||||
Summary: Libraries for Icinga 2
|
||||
Group: Applications/System
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
|
||||
%description libs
|
||||
Provides internal libraries for the daemon or studio.
|
||||
|
||||
|
||||
%package ido-mysql
|
||||
Summary: IDO MySQL database backend for Icinga 2
|
||||
Group: Applications/System
|
||||
%if "%{_vendor}" == "suse"
|
||||
BuildRequires: libmysqlclient-devel
|
||||
%if 0%{?suse_version} >= 1310
|
||||
BuildRequires: mysql-devel
|
||||
%endif
|
||||
|
||||
%else
|
||||
BuildRequires: mysql-devel
|
||||
%endif #suse
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description ido-mysql
|
||||
Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
|
||||
IDOUtils schema >= 1.12
|
||||
|
||||
|
||||
%package ido-pgsql
|
||||
Summary: IDO PostgreSQL database backend for Icinga 2
|
||||
Group: Applications/System
|
||||
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
||||
BuildRequires: postgresql-devel >= 8.4
|
||||
%else
|
||||
BuildRequires: postgresql-devel
|
||||
%endif
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description ido-pgsql
|
||||
Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
|
||||
IDOUtils schema >= 1.12
|
||||
|
||||
|
||||
%package classicui-config
|
||||
Summary: Icinga 2 Classic UI Standalone configuration
|
||||
Group: Applications/System
|
||||
BuildRequires: %{apachename}
|
||||
Requires: %{apachename}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if "%{_vendor}" == "suse"
|
||||
Recommends: icinga-www
|
||||
%endif
|
||||
Provides: icinga-classicui-config
|
||||
Conflicts: icinga-gui-config
|
||||
|
||||
%description classicui-config
|
||||
Icinga 1.x Classic UI Standalone configuration with locations
|
||||
for Icinga 2.
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%global selinux_variants mls targeted
|
||||
#%{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
|
||||
%global modulename %{name}
|
||||
|
||||
%package selinux
|
||||
Summary: SELinux policy module supporting icinga2
|
||||
Group: System Environment/Base
|
||||
#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): /usr/sbin/semodule, /sbin/restorecon
|
||||
Requires(postun): /usr/sbin/semodule, /sbin/restorecon
|
||||
|
||||
%description selinux
|
||||
SELinux policy module supporting icinga2
|
||||
%endif
|
||||
|
||||
|
||||
%if 0%{?fedora}
|
||||
%package studio
|
||||
Summary: Studio for Icinga 2
|
||||
Group: Applications/System
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: wxGTK3
|
||||
|
||||
%description studio
|
||||
Provides a GUI for the Icinga 2 API.
|
||||
%endif
|
||||
|
||||
|
||||
%package -n vim-icinga2
|
||||
Summary: Vim syntax highlighting for icinga2
|
||||
Group: Applications/System
|
||||
%if "%{_vendor}" == "suse"
|
||||
Requires: vim-data
|
||||
%else
|
||||
Requires: vim-filesystem
|
||||
%endif
|
||||
|
||||
%description -n vim-icinga2
|
||||
Vim syntax highlighting for icinga2
|
||||
|
||||
|
||||
%package -n nano-icinga2
|
||||
Summary: Nano syntax highlighting for icinga2
|
||||
Group: Applications/System
|
||||
Requires: nano
|
||||
|
||||
%description -n nano-icinga2
|
||||
Nano syntax highlighting for icinga2
|
||||
|
||||
%prep
|
||||
%setup -q -n icinga2
|
||||
|
||||
%build
|
||||
CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DICINGA2_LTO_BUILD=ON \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DBoost_NO_BOOST_CMAKE=ON \
|
||||
-DICINGA2_RUNDIR=%{_rundir} \
|
||||
-DICINGA2_USER=%{icinga_user} \
|
||||
-DICINGA2_GROUP=%{icinga_group} \
|
||||
-DICINGA2_COMMAND_GROUP=%{icingacmd_group}"
|
||||
%if 0%{?fedora}
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_STUDIO=true"
|
||||
%endif
|
||||
%if "%{_vendor}" == "redhat"
|
||||
%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
|
||||
# Boost_VERSION 1.41.0 vs 101400 - disable build tests
|
||||
# details in https://dev.icinga.com/issues/5033
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
|
||||
-DBOOST_INCLUDEDIR=/usr/include/boost153 \
|
||||
-DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
|
||||
-DBoost_NO_SYSTEM_PATHS=TRUE \
|
||||
-DBUILD_TESTING=FALSE \
|
||||
-DBoost_NO_BOOST_CMAKE=TRUE"
|
||||
%endif
|
||||
%if 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DBUILD_TESTING=FALSE"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" != "suse"
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
|
||||
%else
|
||||
%if 0%{?suse_version} < 1310
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
|
||||
-DBOOST_INCLUDEDIR=/usr/include/boost153 \
|
||||
-DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
|
||||
-DBoost_NO_SYSTEM_PATHS=TRUE \
|
||||
-DBUILD_TESTING=FALSE \
|
||||
-DBoost_NO_BOOST_CMAKE=TRUE"
|
||||
%endif
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
|
||||
%endif
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
||||
%endif
|
||||
|
||||
cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
cd tools/selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
||||
mv %{modulename}.pp %{modulename}.pp.${selinuxvariant}
|
||||
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
||||
done
|
||||
cd -
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install \
|
||||
DESTDIR="%{buildroot}"
|
||||
|
||||
# install classicui config
|
||||
install -D -m 0644 etc/icinga/icinga-classic.htpasswd %{buildroot}%{icingaclassicconfdir}/passwd
|
||||
install -D -m 0644 etc/icinga/cgi.cfg %{buildroot}%{icingaclassicconfdir}/cgi.cfg
|
||||
install -D -m 0644 etc/icinga/icinga-classic-apache.conf %{buildroot}%{apacheconfdir}/icinga.conf
|
||||
|
||||
# remove features-enabled symlinks
|
||||
rm -f %{buildroot}/%{_sysconfdir}/%{name}/features-enabled/*.conf
|
||||
|
||||
# enable suse rc links
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?use_systemd}
|
||||
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
%else
|
||||
ln -sf ../../%{_initrddir}/%{name} "%{buildroot}%{_sbindir}/rc%{name}"
|
||||
%endif
|
||||
mkdir -p "%{buildroot}%{_localstatedir}/adm/fillup-templates/"
|
||||
mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}"
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
cd tools/selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
||||
install -p -m 644 %{modulename}.pp.${selinuxvariant} \
|
||||
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp
|
||||
done
|
||||
cd -
|
||||
|
||||
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
mkdir -p "%{buildroot}%{_datadir}/icinga2-studio"
|
||||
install -p -m 644 icinga-studio/icinga.ico %{buildroot}%{_datadir}/icinga2-studio
|
||||
|
||||
mkdir -p "%{buildroot}%{_datadir}/applications"
|
||||
echo "[Desktop Entry]
|
||||
Name=Icinga 2 Studio
|
||||
Comment=API viewer for Icinga 2
|
||||
TryExec=icinga-studio
|
||||
Exec=icinga-studio
|
||||
Icon=/usr/share/icinga2-studio/icinga.ico
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GTK;Utility;
|
||||
Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desktop
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?suse_version} >= 1310
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vim74/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vim74/ftdetect/%{name}.vim
|
||||
%else
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vim72/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vim72/ftdetect/%{name}.vim
|
||||
%endif
|
||||
%else
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
||||
%endif
|
||||
|
||||
install -D -m 0644 tools/syntax/nano/%{name}.nanorc %{buildroot}%{_datadir}/nano/%{name}.nanorc
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||
|
||||
%pre common
|
||||
getent group %{icinga_group} >/dev/null || %{_sbindir}/groupadd -r %{icinga_group}
|
||||
getent group %{icingacmd_group} >/dev/null || %{_sbindir}/groupadd -r %{icingacmd_group}
|
||||
getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G %{icingacmd_group} -g %{icinga_group} %{icinga_user}
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?use_systemd}
|
||||
%service_add_pre %{name}.service
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
%verifyscript bin
|
||||
%verify_permissions -e %{_rundir}/%{name}/cmd
|
||||
%endif
|
||||
|
||||
%post bin
|
||||
|
||||
# suse
|
||||
%if "%{_vendor}" == "suse"
|
||||
|
||||
%if 0%{?suse_version} >= 1310
|
||||
%set_permissions %{_rundir}/%{name}/cmd
|
||||
%endif
|
||||
|
||||
%endif #suse/rhel
|
||||
|
||||
%post common
|
||||
# suse
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?use_systemd}
|
||||
%fillup_only %{name}
|
||||
%service_add_post %{name}.service
|
||||
%else
|
||||
%fillup_and_insserv %{name}
|
||||
%endif
|
||||
|
||||
# initial installation, enable default features
|
||||
for feature in checker notification mainlog; do
|
||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
%else
|
||||
# rhel
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
%systemd_post %{name}.service
|
||||
%else
|
||||
/sbin/chkconfig --add %{name}
|
||||
%endif
|
||||
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
# initial installation, enable default features
|
||||
for feature in checker notification mainlog; do
|
||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%endif
|
||||
# suse/rhel
|
||||
|
||||
%postun common
|
||||
# suse
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?using_systemd}
|
||||
%service_del_postun %{name}.service
|
||||
%else
|
||||
%restart_on_update %{name}
|
||||
%insserv_cleanup
|
||||
%endif
|
||||
|
||||
%else
|
||||
# rhel
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
%else
|
||||
if [ "$1" -ge "1" ]; then
|
||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%endif
|
||||
# suse / rhel
|
||||
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove enabled features
|
||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%preun common
|
||||
# suse
|
||||
%if "%{_vendor}" == "suse"
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
%service_del_preun %{name}.service
|
||||
%else
|
||||
%stop_on_removal %{name}
|
||||
%endif
|
||||
|
||||
exit 0
|
||||
|
||||
%else
|
||||
# rhel
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
%systemd_preun %{name}.service
|
||||
%else
|
||||
if [ "$1" = "0" ]; then
|
||||
/sbin/service %{name} stop > /dev/null 2>&1 || :
|
||||
/sbin/chkconfig --del %{name} || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
exit 0
|
||||
|
||||
%endif
|
||||
# suse / rhel
|
||||
|
||||
%post ido-mysql
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
# initial installation, enable ido-mysql feature
|
||||
ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%postun ido-mysql
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove feature
|
||||
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%post ido-pgsql
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
# initial installation, enable ido-pgsql feature
|
||||
ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%postun ido-pgsql
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove feature
|
||||
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%post classicui-config
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
# initial installation, enable features
|
||||
for feature in statusdata compatlog command; do
|
||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%postun classicui-config
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove feature
|
||||
for feature in statusdata compatlog command; do
|
||||
rm -f %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%post selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
/usr/sbin/semodule -s ${selinuxvariant} -i \
|
||||
%{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp &> /dev/null || :
|
||||
done
|
||||
/sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
|
||||
/sbin/fixfiles -R icinga2-common restore &> /dev/null || :
|
||||
/sbin/semanage port -a -t icinga2_port_t -p tcp 5665 &> /dev/null || :
|
||||
|
||||
%postun selinux
|
||||
if [ $1 -eq 0 ] ; then
|
||||
/sbin/semanage port -d -t icinga2_port_t -p tcp 5665 &> /dev/null || :
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
/usr/sbin/semodule -s ${selinuxvariant} -r %{modulename} &> /dev/null || :
|
||||
done
|
||||
/sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
|
||||
/sbin/fixfiles -R icinga2-common restore &> /dev/null || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
|
||||
%files bin
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
||||
%{_sbindir}/%{name}
|
||||
%dir %{_libdir}/%{name}/sbin
|
||||
%{_libdir}/%{name}/sbin/%{name}
|
||||
%{_datadir}/%{name}
|
||||
%exclude %{_datadir}/%{name}/include
|
||||
%{_mandir}/man8/%{name}.8.gz
|
||||
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/cache/%{name}
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/crash
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat/archives
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name}
|
||||
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}
|
||||
%attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
||||
%exclude %{_libdir}/%{name}/libdb_ido_mysql*
|
||||
%exclude %{_libdir}/%{name}/libdb_ido_pgsql*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*.so*
|
||||
|
||||
%files common
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog tools/syntax
|
||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%{_sysconfdir}/bash_completion.d/%{name}
|
||||
%if 0%{?use_systemd}
|
||||
%attr(644,root,root) %{_unitdir}/%{name}.service
|
||||
%else
|
||||
%attr(755,root,root) %{_sysconfdir}/init.d/%{name}
|
||||
%endif
|
||||
%if "%{_vendor}" == "suse"
|
||||
%{_sbindir}/rc%{name}
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
||||
%else
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||
%endif
|
||||
%attr(0750,root,%{icinga_group}) %dir %{_sysconfdir}/%{name}
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available
|
||||
%exclude %{_sysconfdir}/%{name}/features-available/ido-*.conf
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-enabled
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/scripts
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/zones.d
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/%{name}.conf
|
||||
%config(noreplace) %attr(0640,root,%{icinga_group}) %{_sysconfdir}/%{name}/init.conf
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/constants.conf
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.conf
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/conf.d/*.conf
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/*.conf
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
||||
%dir %{_libexecdir}/%{name}
|
||||
%{_libexecdir}/%{name}/prepare-dirs
|
||||
%{_libexecdir}/%{name}/safe-reload
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
||||
%attr(0770,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/include
|
||||
%{_datadir}/%{name}/include
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/doc/%{name}
|
||||
%docdir %{_datadir}/doc/%{name}
|
||||
|
||||
%files ido-mysql
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-mysql.conf
|
||||
%{_libdir}/%{name}/libdb_ido_mysql*
|
||||
%{_datadir}/icinga2-ido-mysql
|
||||
|
||||
%files ido-pgsql
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-pgsql.conf
|
||||
%{_libdir}/%{name}/libdb_ido_pgsql*
|
||||
%{_datadir}/icinga2-ido-pgsql
|
||||
|
||||
%files classicui-config
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0751,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
|
||||
%config(noreplace) %{icingaclassicconfdir}/cgi.cfg
|
||||
%config(noreplace) %{apacheconfdir}/icinga.conf
|
||||
%config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%files selinux
|
||||
%defattr(-,root,root,0755)
|
||||
%doc tools/selinux/*
|
||||
%{_datadir}/selinux/*/%{modulename}.pp
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
%files studio
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/icinga-studio
|
||||
%{_datadir}/icinga2-studio
|
||||
%{_datadir}/applications/icinga2-studio.desktop
|
||||
%endif
|
||||
|
||||
%files -n vim-icinga2
|
||||
%defattr(-,root,root,-)
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?suse_version} >= 1310
|
||||
%{_datadir}/vim/vim74/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vim74/ftdetect/%{name}.vim
|
||||
%else
|
||||
%{_datadir}/vim/vim72/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vim72/ftdetect/%{name}.vim
|
||||
%endif
|
||||
%else
|
||||
%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
||||
%endif
|
||||
|
||||
%files -n nano-icinga2
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/nano/%{name}.nanorc
|
||||
|
||||
%changelog
|
||||
356
fedora/SPECS/archive/icingaweb2.spec
Normal file
356
fedora/SPECS/archive/icingaweb2.spec
Normal file
@@ -0,0 +1,356 @@
|
||||
# Icinga Web 2 | (c) 2013-2016 Icinga Development Team | GPLv2+
|
||||
|
||||
%define revision 1
|
||||
|
||||
Name: icingaweb2
|
||||
Version: 2.4.1
|
||||
Release: %{revision}%{?dist}
|
||||
Summary: Icinga Web 2
|
||||
Group: Applications/System
|
||||
License: GPLv2+ and MIT and BSD
|
||||
URL: https://icinga.com
|
||||
Source: icingaweb2.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
|
||||
%define wwwconfigdir %{_sysconfdir}/httpd/conf.d
|
||||
%define wwwuser apache
|
||||
%endif
|
||||
|
||||
%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
|
||||
%endif
|
||||
|
||||
%{?amzn:Requires(pre): shadow-utils}
|
||||
%{?fedora:Requires(pre): shadow-utils}
|
||||
%{?rhel:Requires(pre): shadow-utils}
|
||||
%{?suse_version:Requires(pre): pwdutils}
|
||||
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
|
||||
|
||||
%define basedir %{_datadir}/%{name}
|
||||
%define bindir %{_bindir}
|
||||
%define configdir %{_sysconfdir}/%{name}
|
||||
%define logdir %{_localstatedir}/log/%{name}
|
||||
%define phpdir %{_datadir}/php
|
||||
%define icingawebgroup icingaweb2
|
||||
%define docsdir %{_datadir}/doc/%{name}
|
||||
|
||||
|
||||
%description
|
||||
Icinga Web 2
|
||||
|
||||
|
||||
%package common
|
||||
Summary: Common files for Icinga Web 2 and the Icinga CLI
|
||||
Group: Applications/System
|
||||
%{?amzn:Requires(pre): shadow-utils}
|
||||
%{?fedora:Requires(pre): shadow-utils}
|
||||
%{?rhel:Requires(pre): shadow-utils}
|
||||
%{?suse_version:Requires(pre): pwdutils}
|
||||
|
||||
%description common
|
||||
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}
|
||||
%{?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
|
||||
Icinga Web 2 PHP library
|
||||
|
||||
|
||||
%package -n icingacli
|
||||
Summary: Icinga CLI
|
||||
Group: Applications/System
|
||||
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}
|
||||
|
||||
%description -n icingacli
|
||||
Icinga CLI
|
||||
|
||||
|
||||
%if 0%{?selinux}
|
||||
%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
|
||||
|
||||
%description selinux
|
||||
SELinux policy for Icinga Web 2
|
||||
%endif
|
||||
|
||||
|
||||
%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
|
||||
|
||||
%description vendor-dompdf
|
||||
Icinga Web 2 vendor library dompdf
|
||||
|
||||
|
||||
%package vendor-HTMLPurifier
|
||||
Version: 4.8.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Icinga Web 2 vendor library HTMLPurifier
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2.1
|
||||
Requires: %{php} >= 5.3.0
|
||||
|
||||
%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
|
||||
|
||||
%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
|
||||
|
||||
%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
|
||||
|
||||
%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
|
||||
|
||||
%description vendor-zf1
|
||||
Icinga Web 2's fork of Zend Framework 1
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n icingaweb2
|
||||
%if 0%{?selinux}
|
||||
mkdir selinux
|
||||
cp -p packages/selinux/icingaweb2.{fc,if,te} selinux
|
||||
%endif
|
||||
|
||||
%build
|
||||
%if 0%{?selinux}
|
||||
cd selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
||||
mv icingaweb2.pp icingaweb2.pp.${selinuxvariant}
|
||||
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
||||
done
|
||||
cd -
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/{%{basedir}/{modules,library/vendor,public},%{bindir},%{configdir}/modules,%{logdir},%{phpdir},%{wwwconfigdir},%{_sysconfdir}/bash_completion.d,%{docsdir}}
|
||||
cp -prv application doc %{buildroot}/%{basedir}
|
||||
cp -pv etc/bash_completion.d/icingacli %{buildroot}/%{_sysconfdir}/bash_completion.d/icingacli
|
||||
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 -pv packages/files/apache/icingaweb2.conf %{buildroot}/%{wwwconfigdir}/icingaweb2.conf
|
||||
cp -pv packages/files/bin/icingacli %{buildroot}/%{bindir}
|
||||
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}
|
||||
cd selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
||||
install -p -m 644 icingaweb2.pp.${selinuxvariant} %{buildroot}%{_datadir}/selinux/${selinuxvariant}/icingaweb2.pp
|
||||
done
|
||||
cd -
|
||||
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
|
||||
%endif
|
||||
|
||||
%pre
|
||||
getent group icingacmd >/dev/null || groupadd -r icingacmd
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 01200
|
||||
usermod -A icingacmd,%{icingawebgroup} %{wwwuser}
|
||||
%else
|
||||
usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser}
|
||||
%endif
|
||||
exit 0
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/application/controllers
|
||||
%{basedir}/application/fonts
|
||||
%{basedir}/application/forms
|
||||
%{basedir}/application/layouts
|
||||
%{basedir}/application/views
|
||||
%{basedir}/application/VERSION
|
||||
%{basedir}/doc
|
||||
%{basedir}/modules
|
||||
%{basedir}/public
|
||||
%config(noreplace) %{wwwconfigdir}/icingaweb2.conf
|
||||
%attr(2775,root,%{icingawebgroup}) %dir %{logdir}
|
||||
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules/setup
|
||||
%attr(0660,root,%{icingawebgroup}) %config(noreplace) %{configdir}/modules/setup/config.ini
|
||||
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules/translation
|
||||
%attr(0660,root,%{icingawebgroup}) %config(noreplace) %{configdir}/modules/translation/config.ini
|
||||
%{docsdir}
|
||||
%docdir %{docsdir}
|
||||
|
||||
|
||||
%pre common
|
||||
getent group %{icingawebgroup} >/dev/null || groupadd -r %{icingawebgroup}
|
||||
exit 0
|
||||
|
||||
%files common
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/application/locale
|
||||
%dir %{basedir}/modules
|
||||
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}
|
||||
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules
|
||||
|
||||
|
||||
%files -n php-Icinga
|
||||
%defattr(-,root,root)
|
||||
%{phpdir}/Icinga
|
||||
|
||||
|
||||
%files -n icingacli
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/application/clicommands
|
||||
%{_sysconfdir}/bash_completion.d/icingacli
|
||||
%attr(0755,root,root) %{bindir}/icingacli
|
||||
|
||||
|
||||
%if 0%{?selinux}
|
||||
%post selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
%{_sbindir}/semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/icingaweb2.pp &> /dev/null || :
|
||||
done
|
||||
%{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
|
||||
%{_sbindir}/restorecon -R %{configdir} &> /dev/null || :
|
||||
%{_sbindir}/restorecon -R %{logdir} &> /dev/null || :
|
||||
|
||||
%postun selinux
|
||||
if [ $1 -eq 0 ] ; then
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
do
|
||||
%{_sbindir}/semodule -s ${selinuxvariant} -r icingaweb2 &> /dev/null || :
|
||||
done
|
||||
[ -d %{basedir} ] && %{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
|
||||
[ -d %{configdir} ] && %{_sbindir}/restorecon -R %{configdir} &> /dev/null || :
|
||||
[ -d %{logdir} ] && %{_sbindir}/restorecon -R %{logdir} &> /dev/null || :
|
||||
fi
|
||||
|
||||
%files selinux
|
||||
%defattr(-,root,root,0755)
|
||||
%doc selinux/*
|
||||
%{_datadir}/selinux/*/icingaweb2.pp
|
||||
%endif
|
||||
|
||||
|
||||
%files vendor-dompdf
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/dompdf
|
||||
|
||||
|
||||
%files vendor-HTMLPurifier
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/HTMLPurifier
|
||||
%{basedir}/library/vendor/HTMLPurifier.autoload.php
|
||||
%{basedir}/library/vendor/HTMLPurifier.php
|
||||
|
||||
|
||||
%files vendor-JShrink
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/JShrink
|
||||
|
||||
|
||||
%files vendor-lessphp
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/lessphp
|
||||
|
||||
|
||||
%files vendor-Parsedown
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/Parsedown
|
||||
|
||||
|
||||
%files vendor-zf1
|
||||
%defattr(-,root,root)
|
||||
%{basedir}/library/vendor/Zend
|
||||
82
fedora/SPECS/archive/istatserver.spec
Normal file
82
fedora/SPECS/archive/istatserver.spec
Normal file
@@ -0,0 +1,82 @@
|
||||
%define iuser istat
|
||||
%define igroup istat
|
||||
Name: istatserver
|
||||
Version: 3.0
|
||||
Release: 2%{?dist}
|
||||
Summary: iStat Server for Linux
|
||||
|
||||
Group: Applications/System
|
||||
License: As it is
|
||||
URL: https://bjango.com/help/istat3/linuxpackages/
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}.service
|
||||
|
||||
BuildRequires: automake libxml2-devel libxml2-devel sqlite-devel
|
||||
|
||||
%description
|
||||
iStat Server is a system monitoring daemon that is used in conjunction
|
||||
with iStat for iOS and iStat for macOS to remotely monitor computers.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
./autogen
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
# install the service file:
|
||||
%__install -d %{buildroot}%{_unitdir}
|
||||
%__install -D %{S:1} %{buildroot}%{_unitdir}/%{name}.service
|
||||
%__install -d %{buildroot}%{_var}/%{_rundir}/%{name}
|
||||
|
||||
%clean
|
||||
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/*
|
||||
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/*
|
||||
|
||||
%pre
|
||||
if [ $1 -eq 1 ]; then
|
||||
grep -q %{igroup} /etc/group || \
|
||||
/usr/sbin/groupadd %{igroup}
|
||||
grep -q %{iuser} /etc/passwd || \
|
||||
/usr/sbin/useradd -g %{igroup} -s /sbin/nologin %{iuser}
|
||||
/bin/true
|
||||
fi
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
if [ $1 -eq 0 ]; then
|
||||
grep -q %{iuser} /etc/passwd && \
|
||||
/usr/sbin/userdel %{iuser}
|
||||
grep -q %{igroup} /etc/group && \
|
||||
/usr/sbin/groupdel %{igroup}
|
||||
/bin/true
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc README COPYING
|
||||
%dir %attr(0775,%{iuser},%{igroup}) %{_sysconfdir}/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}*
|
||||
%attr(0755,root,root) %{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}*
|
||||
%{_mandir}/man5/%{name}*
|
||||
%dir %attr(0770,%{iuser},%{igroup}) %{_var}/%{_rundir}/%{name}
|
||||
%{_unitdir}/%{name}.service
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Oct 26 2016 Daniel Steiner <elpito@bluewin.ch>
|
||||
- First build for Fedora 25.
|
||||
106
fedora/SPECS/archive/libcec.spec
Normal file
106
fedora/SPECS/archive/libcec.spec
Normal file
@@ -0,0 +1,106 @@
|
||||
%if 0%{?fedora}
|
||||
%global with_python 1
|
||||
%endif
|
||||
|
||||
%define vvv 3
|
||||
|
||||
Name: libcec
|
||||
Version: 4.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Library and utilities for HDMI-CEC device control
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://libcec.pulse-eight.com/
|
||||
Source0: https://github.com/Pulse-Eight/%{name}/archive/%{name}-%{name}-%{version}-%{vvv}.tar.gz
|
||||
Patch0: libcec-pythonlib.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libXrandr-devel
|
||||
BuildRequires: lockdev-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: platform-devel
|
||||
%if 0%{?with_python}
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
BuildRequires: swig
|
||||
BuildRequires: systemd-devel
|
||||
|
||||
%description
|
||||
libCEC allows you in combination with the right hardware to control your device
|
||||
with your TV remote control over your existing HDMI cabling.
|
||||
|
||||
libCEC is an enabling platform for the CEC bus in HDMI, it allows developers to
|
||||
interact with other HDMI devices without having to worry about the communication
|
||||
overhead, handshaking, and the various ways of send messages for each vendor.
|
||||
|
||||
%package devel
|
||||
Summary: Development package for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
Files for development with %{name}.
|
||||
|
||||
%if 0%{?with_python}
|
||||
%package -n python3-libcec
|
||||
Summary: A Python 3 interface to libcec
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python3-libcec
|
||||
Python 3 bindings for libcec
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}-%{vvv}
|
||||
%patch0 -p1 -b .python
|
||||
|
||||
# Remove non linux binaries
|
||||
rm -rf support
|
||||
rm -rf driver
|
||||
|
||||
%build
|
||||
%cmake .
|
||||
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot} INSTALL='install -p'
|
||||
|
||||
#Remove libtool archives.
|
||||
find %{buildroot} -name '*.la' -delete
|
||||
|
||||
# Remove versioned binaries
|
||||
rm %{buildroot}/%{_bindir}/cec-client %{buildroot}/%{_bindir}/cecc-client
|
||||
mv %{buildroot}/%{_bindir}/cec-client-%{version} %{buildroot}/%{_bindir}/cec-client
|
||||
mv %{buildroot}/%{_bindir}/cecc-client-%{version} %{buildroot}/%{_bindir}/cecc-client
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog
|
||||
%{_bindir}/cec-client
|
||||
%{_bindir}/cecc-client
|
||||
%{_libdir}/libcec.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libcec
|
||||
%{_libdir}/pkgconfig/libcec.pc
|
||||
%{_libdir}/libcec.so
|
||||
|
||||
%if 0%{?with_python}
|
||||
%files -n python3-libcec
|
||||
%{_bindir}/pyCecClient.py
|
||||
%{python3_sitearch}/cec/
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Dec 3 2016 Daniel Steiner <dsteiner@redhat.com>
|
||||
- Build for Fedora 25.
|
||||
|
||||
96
fedora/SPECS/archive/libmediascan.spec
Normal file
96
fedora/SPECS/archive/libmediascan.spec
Normal file
@@ -0,0 +1,96 @@
|
||||
Name: libmediascan
|
||||
Version: 0.1
|
||||
Release: 1%{?dist}
|
||||
Summary: C library for scanning audio/video/image file metadata
|
||||
License: LGPL+
|
||||
# https://github.com/Logitech/slimserver-vendor/blob/public/7.8/CPAN/libmediascan-0.1.tar.gz?raw=true
|
||||
Source0: libmediascan-0.1.tar.gz
|
||||
Patch0: libmediascan-0.1-new-ffmpeg.patch
|
||||
Patch1: libmediascan-0.1-noinstheaders.patch
|
||||
Patch2: libmediascan-0.1-fix-missing-prototypes.patch
|
||||
Patch3: libmediascan-0.1-fix-some-warnings.patch
|
||||
BuildRequires: libjpeg-devel libpng-devel giflib-devel libexif-devel
|
||||
BuildRequires: ffmpeg-devel libtool automake autoconf
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::Warn)
|
||||
|
||||
%description
|
||||
C library for scanning audio/video/image file metadata, mainly intended
|
||||
for use with squeezeboxserver.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package -n perl-Media-Scan
|
||||
Summary: Perl bindings for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description -n perl-Media-Scan
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
autoreconf -ivf
|
||||
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ffmpeg"
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
pushd bindings/perl
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \
|
||||
--with-lms-includes=../../include --with-lms-libs=../../src/.libs \
|
||||
--with-ffmpeg-includes=/usr/include/ffmpeg
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
pushd bindings/perl
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
popd
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%doc COPYING README
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files -n perl-Media-Scan
|
||||
%{perl_vendorarch}/auto/Media
|
||||
%{perl_vendorarch}/Media
|
||||
%{_mandir}/man3/Media*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Aug 08 2014 Hans de Goede <j.w.r.degoede@gmail.com> - 0.1-1
|
||||
- Initial rpmfusion package
|
||||
112
fedora/SPECS/archive/libmicrohttpd.spec
Normal file
112
fedora/SPECS/archive/libmicrohttpd.spec
Normal file
@@ -0,0 +1,112 @@
|
||||
Name: libmicrohttpd
|
||||
Version: 0.9.62
|
||||
Release: 1%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Lightweight library for embedding a webserver in applications
|
||||
License: LGPLv2+
|
||||
URL: http://www.gnu.org/software/libmicrohttpd/
|
||||
Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
|
||||
Patch0: gnutls-utilize-system-crypto-policy.patch
|
||||
|
||||
BuildRequires: autoconf, automake, libtool, gettext-devel
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: gnutls-devel
|
||||
BuildRequires: doxygen graphviz
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
|
||||
%description
|
||||
GNU libmicrohttpd is a small C library that is supposed to make it
|
||||
easy to run an HTTP server as part of another application.
|
||||
Key features that distinguish libmicrohttpd from other projects are:
|
||||
|
||||
* C library: fast and small
|
||||
* API is simple, expressive and fully reentrant
|
||||
* Implementation is http 1.1 compliant
|
||||
* HTTP server can listen on multiple ports
|
||||
* Support for IPv6
|
||||
* Support for incremental processing of POST data
|
||||
* Creates binary of only 25k (for now)
|
||||
* Three different threading models
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libmicrohttpd
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for libmicrohttpd
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for libmicrohttpd
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Doxygen documentation for libmicrohttpd and some example source code
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
# Required because patches modify .am files
|
||||
autoreconf --install --force
|
||||
%configure --disable-static --with-gnutls --enable-https=yes
|
||||
%make_build
|
||||
make -C doc/doxygen full
|
||||
|
||||
# Disabled for now due to problems reported at
|
||||
# https://gnunet.org/bugs/view.php?id=1619
|
||||
|
||||
%check
|
||||
%ifnarch s390x
|
||||
%make_build check
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
rm -f %{buildroot}%{_infodir}/dir
|
||||
rm -f %{buildroot}%{_bindir}/demo
|
||||
|
||||
# Install some examples in /usr/share/doc/libmicrohttpd-doc/examples
|
||||
mkdir examples
|
||||
install -m 644 src/examples/*.c examples
|
||||
install -m 644 doc/examples/*.c examples
|
||||
|
||||
cp -R doc/doxygen/html html
|
||||
|
||||
%post doc
|
||||
/sbin/install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||
/sbin/install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||
|
||||
%preun doc
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || :
|
||||
/sbin/install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_libdir}/libmicrohttpd.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/microhttpd.h
|
||||
%{_libdir}/libmicrohttpd.so
|
||||
%{_libdir}/pkgconfig/libmicrohttpd.pc
|
||||
|
||||
%files doc
|
||||
%{_mandir}/man3/libmicrohttpd.3.gz
|
||||
%{_infodir}/libmicrohttpd.info.gz
|
||||
%{_infodir}/libmicrohttpd-tutorial.info.gz
|
||||
%{_infodir}/libmicrohttpd_performance_data.png.gz
|
||||
%doc AUTHORS README ChangeLog
|
||||
%doc examples
|
||||
%doc html
|
||||
|
||||
%changelog
|
||||
* Sun Jan 13 2019 Daniel Steiner <daniel.steiner@greenmail.ch> - 1:0.9.62-1
|
||||
- First version for Fedora 29
|
||||
- Update to latest version
|
||||
|
||||
122
fedora/SPECS/archive/libmodsecurity.spec
Normal file
122
fedora/SPECS/archive/libmodsecurity.spec
Normal file
@@ -0,0 +1,122 @@
|
||||
Name: libmodsecurity
|
||||
Version: 3.0.3
|
||||
Release: 2%{?dist}
|
||||
License: ASL 2.0
|
||||
URL: http://www.modsecurity.org/
|
||||
Group: System Environment/Daemons
|
||||
Summary: A library that loads/interprets rules written in the ModSecurity SecRules
|
||||
Source0: https://github.com/SpiderLabs/ModSecurity/releases/download/v%{version}/modsecurity-v%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: make
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
BuildRequires: git-core
|
||||
BuildRequires: ssdeep-devel
|
||||
BuildRequires: yajl-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: lmdb-devel
|
||||
BuildRequires: libmaxminddb-devel
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(yajl)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(geoip)
|
||||
BuildRequires: pkgconfig(libpcre)
|
||||
BuildRequires: pkgconfig(lmdb)
|
||||
|
||||
#Requires:
|
||||
BuildRequires: libxml2-devel pcre-devel lua-devel libmaxminddb-devel lmdb-devel ssdeep-devel libcurl-devel
|
||||
|
||||
# libinjection is supposed to be bundled (same as with mod_security 2.x)
|
||||
# See: https://github.com/client9/libinjection#embedding
|
||||
Provides: bundled(libinjection) = 3.9.2
|
||||
|
||||
%description
|
||||
Libmodsecurity is one component of the ModSecurity v3 project.
|
||||
The library codebase serves as an interface to ModSecurity Connectors
|
||||
taking in web traffic and applying traditional ModSecurity processing.
|
||||
In general, it provides the capability to load/interpret rules written
|
||||
in the ModSecurity SecRules format and apply them to HTTP content provided
|
||||
by your application via Connectors.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains static libraries for developing
|
||||
applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n modsecurity-v%{version}
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--enable-shared \
|
||||
--enable-fast-install \
|
||||
--enable-examples \
|
||||
--enable-parser-generation \
|
||||
--enable-mutex-on-pm \
|
||||
--disable-doxygen-doc \
|
||||
--enable-valgrind \
|
||||
--enable-valgrind-sgcheck \
|
||||
--with-yajl \
|
||||
--with-maxmind \
|
||||
--with-geoip \
|
||||
--without-lmdb \
|
||||
--with-ssdeep \
|
||||
--with-lua \
|
||||
--with-pic
|
||||
|
||||
# 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_build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}/*
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc README.md AUTHORS
|
||||
%{_libdir}/*.so.*
|
||||
%{_bindir}/*
|
||||
%license LICENSE
|
||||
|
||||
%files devel
|
||||
%doc README.md AUTHORS
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/modsecurity.pc
|
||||
%license LICENSE
|
||||
|
||||
%files static
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/*.la
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}/*
|
||||
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 7 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- lmdb disabled
|
||||
|
||||
* Tue Jan 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- New 3.x build for Fedora 29.
|
||||
|
||||
179
fedora/SPECS/archive/libnfs.spec
Normal file
179
fedora/SPECS/archive/libnfs.spec
Normal file
@@ -0,0 +1,179 @@
|
||||
Name: libnfs
|
||||
Summary: NFS client library
|
||||
Vendor: Ronnie Sahlberg
|
||||
Packager: ronniesahlberg@gmail.com
|
||||
Version: 1.9.5
|
||||
Release: 1%{?dist}
|
||||
Epoch: 0
|
||||
License: GNU LGPL version 2.1
|
||||
Group: System Environment/Libraries
|
||||
URL: http://www.github.com/sahlberg/libnfs
|
||||
|
||||
Source: libnfs-%{version}.tar.gz
|
||||
|
||||
Provides: lib = %{version}
|
||||
|
||||
Prefix: /usr
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
LibNFS is a NFS client library
|
||||
|
||||
#######################################################################
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# setup the init script and sysconfig file
|
||||
%setup -T -D -n libnfs-%{version} -q
|
||||
|
||||
%build
|
||||
|
||||
## check for ccache
|
||||
if ccache -h >/dev/null 2>&1 ; then
|
||||
CC="ccache gcc"
|
||||
else
|
||||
CC="gcc"
|
||||
fi
|
||||
|
||||
export CC
|
||||
|
||||
## always run autogen.sh
|
||||
aclocal
|
||||
autoheader
|
||||
autoconf
|
||||
libtoolize -c -f -i
|
||||
automake --add-missing
|
||||
|
||||
|
||||
CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -g -D_GNU_SOURCE" %configure
|
||||
|
||||
%install
|
||||
# Clean up in case there is trash left from a previous build
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# Create the target build directory hierarchy
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Remove "*.old" files
|
||||
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
#######################################################################
|
||||
## Files section ##
|
||||
#######################################################################
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
%{_libdir}/libnfs.so*
|
||||
|
||||
%package devel
|
||||
Summary: Development libraries for LibNFS
|
||||
Group: Development
|
||||
|
||||
%description devel
|
||||
development libraries for LibNFS
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/nfsc/libnfs.h
|
||||
%{_includedir}/nfsc/libnfs-zdr.h
|
||||
%{_includedir}/nfsc/libnfs-raw.h
|
||||
%{_includedir}/nfsc/libnfs-raw-mount.h
|
||||
%{_includedir}/nfsc/libnfs-raw-nfs.h
|
||||
%{_includedir}/nfsc/libnfs-raw-portmap.h
|
||||
%{_includedir}/nfsc/libnfs-raw-rquota.h
|
||||
%{_includedir}/nfsc/libnfs-raw-nlm.h
|
||||
%{_includedir}/nfsc/libnfs-raw-nsm.h
|
||||
%{_libdir}/libnfs.a
|
||||
%{_libdir}/libnfs.la
|
||||
%{_libdir}/pkgconfig/libnfs.pc
|
||||
|
||||
%package utils
|
||||
Summary: Utility programs for LibNFS
|
||||
Group: Applications/System
|
||||
|
||||
%description utils
|
||||
Utility programs for LibNFS
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/nfs-ls
|
||||
%{_mandir}/man1/nfs-ls.1.gz
|
||||
|
||||
%changelog
|
||||
* Sat Jul 19 2014 : Version 1.9.5
|
||||
- Remove old ONC-RPC symbols
|
||||
* Wed Mar 19 2014 : Version 1.9.3
|
||||
- Add O_TRUNC support to nfs_open()
|
||||
- Add a simple but incomplete LD_PRELOAD tool
|
||||
- Fixes for some memory leaks and C++ compile support
|
||||
- Make ANDROID default uid/gid to 65534
|
||||
- Allow the READDIRPLUS emulation to still work if some objects
|
||||
in the direcotry can not be lookedup (NFSv4 ACL denying READ-ATTRIBUTES)
|
||||
- Have libnfs retry any read/write operations where the server responds
|
||||
with a short read/write. Some servers do this when they are overloaded?
|
||||
* Thu Jan 30 2014 : Version 1.9.2
|
||||
- Remove chdir change. This needs more testing.
|
||||
* Tue Jan 28 2014 : Version 1.9.1
|
||||
- Restore libnfs-raw-*.h to make install
|
||||
* Mon Jan 27 2014 : Version 1.9
|
||||
- Use _stat64 on windows so file sizes become 64bit always.
|
||||
- Increase default marshalling buffer so we can marshall large PDUs.
|
||||
- RPC layer support for NFSv2
|
||||
- Win32 updates and fixes
|
||||
- Add URL parsing functions and URL argument support.
|
||||
- New utility: nfs-io
|
||||
- nfs-ls enhancements
|
||||
- RPC layer support for NSM
|
||||
- Add example FUSE filesystem.
|
||||
- Minor fixes.
|
||||
* Wed Oct 30 2013 : Version 1.8
|
||||
- Fix nasty memory leak in read_from_socket
|
||||
- minor updates
|
||||
* Sun Oct 20 2013 : Version 1.7
|
||||
- Allow nested eventloops so that a sync function can be called from a callback.
|
||||
- Fix a bug in unmarshalling a uint64.
|
||||
- Add PATHCONF support.
|
||||
- WIN32/64 updates
|
||||
- AROS updates
|
||||
* Mon May 27 2013 : Version 1.6
|
||||
- AROS/Amiga support
|
||||
- Chose better initial xid value to reduce the probability for collissions.
|
||||
- Set default group to getgid() instead of -1. This fixes an interoperability
|
||||
problem with 3.9 linux knfsd.
|
||||
* Mon Dec 3 2012 : Version 1.5
|
||||
- Switch to using our own RPC/XDR replacement ZDR instead of relying on the
|
||||
system RPC/TIRPC libraries. This allows using libnfs on platforms that lack
|
||||
RPC libraries completely.
|
||||
- Add support for Android.
|
||||
* Sun Nov 25 2012 : Version 1.4
|
||||
- Add trackig of freed context and assert on using a context after it has been
|
||||
freed.
|
||||
- Windows x64 support and fixes.
|
||||
- Switch to using our own version of xdr_int64() since the one in libtirpc
|
||||
crashes on some platforms.
|
||||
- Fix memory leak in an error path for addrinfo.
|
||||
- Fix bug dereferencing a null pointer in the mount callback on error.
|
||||
* Sat Mar 3 2012 : Version 1.3
|
||||
- add set/unset to portmapper
|
||||
- add mount v1
|
||||
- try to rotate to find a free port better
|
||||
- minor fixes
|
||||
* Tue Dec 6 2011 : Version 1.2
|
||||
- Add support for MKNOD
|
||||
- Add support for HaneWin NFS server
|
||||
- Change all [s]size_t offset_t to be 64bit clean scalars
|
||||
* Sun Nov 27 2011 : Version 1.1
|
||||
- Fix definition and use of AUTH
|
||||
- Only call the "connect" callback if non-NULL
|
||||
- make sure the callback for connect is only invoked once for the sync api
|
||||
- make file offset bits 64 bits always
|
||||
* Sun Jul 31 2011 : Version 1.0
|
||||
- Initial version
|
||||
72
fedora/SPECS/archive/libva-intel-driver.spec
Normal file
72
fedora/SPECS/archive/libva-intel-driver.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#global _with_gen4asm 1
|
||||
|
||||
Name: libva-intel-driver
|
||||
Version: 1.7.3
|
||||
Release: 1%{?dist}
|
||||
Summary: HW video decode support for Intel integrated graphics
|
||||
Group: System Environment/Libraries
|
||||
License: MIT and EPL
|
||||
URL: http://freedesktop.org/wiki/Software/vaapi
|
||||
Source0: http://www.freedesktop.org/software/vaapi/releases/%{name}/%{name}-%{version}.tar.bz2
|
||||
|
||||
ExclusiveArch: %{ix86} x86_64 ia64
|
||||
|
||||
#BuildRequires: libtool
|
||||
|
||||
%{?_with_gen4asm:BuildRequires: pkgconfig(intel-gen4asm)}
|
||||
BuildRequires: pkgconfig(libudev)
|
||||
BuildRequires: libXext-devel
|
||||
BuildRequires: libXfixes-devel
|
||||
BuildRequires: libdrm-devel >= 2.4.23
|
||||
BuildRequires: libpciaccess-devel
|
||||
BuildRequires: libva-devel >= 1.3.0
|
||||
BuildRequires: mesa-libGL-devel
|
||||
BuildRequires: mesa-libEGL-devel
|
||||
%{!?_without_wayland:
|
||||
BuildRequires: wayland-devel
|
||||
BuildRequires: pkgconfig(wayland-client) >= 1
|
||||
BuildRequires: pkgconfig(wayland-scanner) >= 1
|
||||
}
|
||||
|
||||
|
||||
%description
|
||||
HW video decode support for Intel integrated graphics.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%{?_with_gen4asm:
|
||||
#Move pre-built (binary) asm code
|
||||
for f in src/shaders/vme/*.g?b ; do
|
||||
mv ${f} ${f}.prebuilt
|
||||
done
|
||||
for f in src/shaders/h264/mc/*.g?b* ; do
|
||||
mv ${f} ${f}.prebuilt
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
%build
|
||||
#autoreconf -vif
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
||||
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
|
||||
|
||||
%{?_with_gen4asm:
|
||||
#Display a diff between prebuit ASM and our generation
|
||||
gendiff . .prebuilt
|
||||
}
|
||||
|
||||
|
||||
%files
|
||||
%doc AUTHORS COPYING NEWS README
|
||||
%{_libdir}/dri/i965_drv_video.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Dec 9 2017 Daniel Steiner <daniel.steiner@greenmail.ch> - 1.7.3-1
|
||||
- Update to 1.7.3
|
||||
|
||||
88
fedora/SPECS/archive/lm-perl-vendor.spec
Normal file
88
fedora/SPECS/archive/lm-perl-vendor.spec
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package logitech media server (squeezebox) perl modules on fedora 23 (perl 5.22)
|
||||
#
|
||||
|
||||
|
||||
Name: lm-perl-vendor
|
||||
Summary: Perl modules for logitech media server (squeezebox)
|
||||
License: Artistic-1.0 ; GPL-2.0+
|
||||
Group: Development/Languages/Perl
|
||||
Version: 5.22
|
||||
%if "%{_vendor}" == "redhat"
|
||||
Release: 01%{?dist}
|
||||
%else
|
||||
Release: 01.%{_distro}
|
||||
%endif
|
||||
# git repo URL:
|
||||
Url: https://github.com/Logitech/slimserver-vendor.git
|
||||
%perl_requires
|
||||
BuildRequires: perl(Class::XSAccessor)
|
||||
BuildRequires: perl-DBD-SQLite
|
||||
BuildRequires: perl-DBI
|
||||
BuildRequires: perl(Digest::SHA1)
|
||||
BuildRequires: perl(EV)
|
||||
BuildRequires: perl(Test::Warn)
|
||||
BuildRequires: perl(Encode::Detect)
|
||||
BuildRequires: perl(HTML::Form)
|
||||
BuildRequires: perl(HTML::FormatText)
|
||||
BuildRequires: perl(HTML::Parser)
|
||||
BuildRequires: perl(HTML::Tree)
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
BuildRequires: perl(IO::AIO)
|
||||
BuildRequires: perl(IO::Interface)
|
||||
BuildRequires: perl(Image::Scale)
|
||||
BuildRequires: perl(JSON::XS)
|
||||
BuildRequires: perl(Linux::Inotify2)
|
||||
BuildRequires: perl(MP3::Cut::Gapless)
|
||||
BuildRequires: perl(Media::Scan)
|
||||
BuildRequires: perl(Sub::Name)
|
||||
BuildRequires: perl(Template::Stash::XS)
|
||||
BuildRequires: perl(XML::Parser::Expat)
|
||||
BuildRequires: perl(YAML::XS::LibYAML)
|
||||
BuildRequires: giflib-devel libexif-devel
|
||||
BuildRequires: perl(common::sense)
|
||||
BuildRequires: perl(Audio::Cuefile::Parser)
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl-Params-Validate
|
||||
BuildRequires: perl-ExtUtils-MakeMaker
|
||||
BuildRequires: perl-macros git
|
||||
Provides: perl(Class::XSAccessor::Heavy)
|
||||
Patch0: lm-cpan-buildme-522.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define bdir slimserver-vendor/CPAN
|
||||
Packager: Daniel Steiner <elpito@bluewin.ch>
|
||||
|
||||
%description
|
||||
Vendor modules for Logitech Media Server (squeezebox) which are depending on OS perl version.
|
||||
This packages is just an addon for the official logitechmediaserver package, which you can install
|
||||
from here: http://downloads.slimdevices.com/nightly/
|
||||
|
||||
%prep
|
||||
git clone %{url}
|
||||
|
||||
pushd %{_builddir}/%{bdir}
|
||||
%patch0
|
||||
popd
|
||||
|
||||
%build
|
||||
pushd %{_builddir}/%{bdir}
|
||||
./buildme.sh -t
|
||||
popd
|
||||
|
||||
%install
|
||||
install -d ${RPM_BUILD_ROOT}%{_datarootdir}/squeezeboxserver/CPAN
|
||||
pushd %{_builddir}/%{bdir}/build
|
||||
cp -a arch ${RPM_BUILD_ROOT}%{_datarootdir}/squeezeboxserver/CPAN/
|
||||
popd
|
||||
|
||||
%clean
|
||||
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/*
|
||||
[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/*
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datarootdir}/squeezeboxserver/CPAN/arch/%version
|
||||
|
||||
%changelog
|
||||
* Sun Dec 6 2015 Daniel Steiner <elpito@bluewin.ch>
|
||||
- Build for perl 5.22, see version of package.
|
||||
52
fedora/SPECS/archive/lnav.spec
Normal file
52
fedora/SPECS/archive/lnav.spec
Normal file
@@ -0,0 +1,52 @@
|
||||
Name: lnav
|
||||
Version: 0.8.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Curses-based tool for viewing and analyzing log files
|
||||
License: BSD
|
||||
URL: http://lnav.org
|
||||
Source0: https://github.com/tstack/lnav/releases/download/v%{version}/lnav-%{version}.tar.gz
|
||||
#BuildRequires: autoconf
|
||||
#BuildRequires: automake
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: ncurses-devel
|
||||
# Should be removed but craps still choking around.
|
||||
# TODO 0.7.1
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: python
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%description
|
||||
lnav is an enhanced log file viewer that takes advantage of any semantic
|
||||
information that can be gleaned from the files being viewed, such as
|
||||
timestamps and log levels. Using this extra semantic information, it can
|
||||
do things like interleaving messages from different files, generate
|
||||
histograms of messages over time, and providing hotkeys for navigating
|
||||
through the file. It is hoped that these features will allow the user to
|
||||
quickly and efficiently zero in on problems.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --disable-static --disable-silent-rules
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
#make check
|
||||
|
||||
%files
|
||||
%doc AUTHORS NEWS README
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/lnav.1*
|
||||
|
||||
%changelog
|
||||
* Tue Jul 18 2017 Daniel Steiner <dsteiner@redhat.com>
|
||||
- First build for Fedora 26
|
||||
162
fedora/SPECS/archive/lzop.spec
Normal file
162
fedora/SPECS/archive/lzop.spec
Normal file
@@ -0,0 +1,162 @@
|
||||
Summary: Real-time file compressor
|
||||
Name: lzop
|
||||
Version: 1.03
|
||||
Release: 21%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/Archiving
|
||||
URL: https://www.lzop.org/
|
||||
Source: https://www.lzop.org/download/%{name}-%{version}.tar.gz
|
||||
Patch0: lzop-1.03-gcc5_ppc64.patch
|
||||
Patch1: lzop-1.03-gcc6.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: lzo-devel
|
||||
|
||||
%description
|
||||
lzop is a compression utility which is designed to be a companion to gzip.
|
||||
It is based on the LZO data compression library and its main advantages over
|
||||
gzip are much higher compression and decompression speed at the cost of some
|
||||
compression ratio. The lzop compression utility was designed with the goals
|
||||
of reliability, speed, portability and with reasonable drop-in compatibility
|
||||
to gzip.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .gcc5_ppc64
|
||||
%patch1 -p0 -b .gcc6
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README THANKS
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man?/%{name}.*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> - 1.03-20
|
||||
- add explicit BR for the gcc compiler
|
||||
- use https:// in URL and Source
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Mar 08 2016 Robert Scheck <robert@fedoraproject.org> - 1.03-15
|
||||
- Added patch from openSUSE to fix building using GCC 6 (#1307760)
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Tue Dec 29 2015 Robert Scheck <robert@fedoraproject.org> - 1.03-13
|
||||
- Added patch by Khem Raj to use static inlines as the external
|
||||
inline definition has changed with GCC 5 (to fix ppc64 builds)
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 1.03-7
|
||||
- revert specfile changes that cause problems to Robert Scheck
|
||||
|
||||
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 1.03-6
|
||||
- fix specfile issues reported by the fedora-review script
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Fri Dec 31 2010 Robert Scheck <robert@fedoraproject.org> 1.03-2
|
||||
- Minor spec file cleanups and updated %%description
|
||||
|
||||
* Tue Dec 07 2010 Kamil Dudka <kdudka@redhat.com> - 1.03-1
|
||||
- update to 1.03
|
||||
|
||||
* Wed Mar 03 2010 Kamil Dudka <kdudka@redhat.com> - 1.02-0.9.rc1
|
||||
- license changed to GPLv2+
|
||||
- added -q option to %%setup
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-0.8.rc1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.02-0.7.rc1
|
||||
- Rebuild against gcc 4.4 and rpm 4.6
|
||||
|
||||
* Tue Sep 18 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.6.rc1
|
||||
- gcc 4.3 rebuild
|
||||
|
||||
* Tue Sep 18 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.5.rc1
|
||||
- License fix
|
||||
|
||||
* Sat Sep 02 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.4.rc1
|
||||
- FE6 Rebuild
|
||||
|
||||
* Sun Jul 30 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.3.rc1
|
||||
- use new alphatag convention
|
||||
- build with lzop 2 at last
|
||||
|
||||
* Mon Feb 13 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.2
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
- build with lzop 1 since lzop 2 hasn't been merged yet
|
||||
|
||||
* Thu Jan 19 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.02-0.1
|
||||
- update to 1.02rc1
|
||||
- build with lzop 2
|
||||
|
||||
* Wed Jan 18 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||
- 1.01-4
|
||||
- gcc 4.1 build time
|
||||
|
||||
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com>
|
||||
- 1.01-3
|
||||
- rebuild on all arches
|
||||
|
||||
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
||||
- rebuilt
|
||||
|
||||
* Tue Apr 20 2004 Nicolas Mailhot <Nicolas.Mailhot at laPoste.net>
|
||||
- 0:1.01-0.fdr.1
|
||||
- Fedorization
|
||||
|
||||
* Tue Mar 09 2004 Dag Wieers <dag@wieers.com>
|
||||
- 1.01-1
|
||||
- Initial package. (using DAR)
|
||||
119
fedora/SPECS/archive/modsecurity_apache.spec
Normal file
119
fedora/SPECS/archive/modsecurity_apache.spec
Normal file
@@ -0,0 +1,119 @@
|
||||
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
||||
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
||||
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
||||
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
||||
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
|
||||
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
||||
|
||||
%global with_mlogc 0%{?fedora} || 0%{?rhel} <= 6
|
||||
|
||||
Summary: Security module for the Apache HTTP Server
|
||||
Name: mod_security
|
||||
Version: 3.0.3
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
URL: http://www.modsecurity.org/
|
||||
Group: System Environment/Daemons
|
||||
Source: https://www.modsecurity.org/tarball/%{version}/modsecurity-v%{version}.tar.gz
|
||||
Source1: mod_security.conf
|
||||
Source2: 10-mod_security.conf
|
||||
Requires: httpd httpd-mmn = %{_httpd_mmn}
|
||||
BuildRequires: httpd-devel libxml2-devel pcre-devel curl-devel lua-devel
|
||||
|
||||
%description
|
||||
ModSecurity is an open source intrusion detection and prevention engine
|
||||
for web applications. It operates embedded into the web server, acting
|
||||
as a powerful umbrella - shielding web applications from attacks.
|
||||
|
||||
%if %with_mlogc
|
||||
%package -n mlogc
|
||||
Summary: ModSecurity Audit Log Collector
|
||||
Group: System Environment/Daemons
|
||||
Requires: mod_security
|
||||
|
||||
%description -n mlogc
|
||||
This package contains the ModSecurity Audit Log Collector.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n modsecurity-v%{version}
|
||||
|
||||
%build
|
||||
%configure --enable-pcre-match-limit=1000000 \
|
||||
--enable-pcre-match-limit-recursion=1000000 \
|
||||
--with-apxs=%{_httpd_apxs}
|
||||
|
||||
# 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}
|
||||
|
||||
%check
|
||||
# Test suite does not start because of some issue in shipped httpd config (fix upstreamed in PR #669)
|
||||
# After the fix, the test suite starts but still fails
|
||||
#make test
|
||||
#make test-regression
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
install -d %{buildroot}%{_sbindir}
|
||||
install -d %{buildroot}%{_bindir}
|
||||
install -d %{buildroot}%{_httpd_moddir}
|
||||
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
|
||||
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
|
||||
|
||||
install -m0755 apache2/.libs/mod_security2.so %{buildroot}%{_httpd_moddir}/mod_security2.so
|
||||
|
||||
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
||||
# 2.4-style
|
||||
install -Dp -m0644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}/10-mod_security.conf
|
||||
install -Dp -m0644 %{SOURCE1} %{buildroot}%{_httpd_confdir}/mod_security.conf
|
||||
sed -i 's/Include/IncludeOptional/' %{buildroot}%{_httpd_confdir}/mod_security.conf
|
||||
%else
|
||||
# 2.2-style
|
||||
install -d -m0755 %{buildroot}%{_httpd_confdir}
|
||||
cat %{SOURCE2} %{SOURCE1} > %{buildroot}%{_httpd_confdir}/mod_security.conf
|
||||
%endif
|
||||
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
|
||||
|
||||
# mlogc
|
||||
%if %with_mlogc
|
||||
install -d %{buildroot}%{_localstatedir}/log/mlogc
|
||||
install -d %{buildroot}%{_localstatedir}/log/mlogc/data
|
||||
install -m0755 mlogc/mlogc %{buildroot}%{_bindir}/mlogc
|
||||
install -m0755 mlogc/mlogc-batch-load.pl %{buildroot}%{_bindir}/mlogc-batch-load
|
||||
install -m0644 mlogc/mlogc-default.conf %{buildroot}%{_sysconfdir}/mlogc.conf
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr (-,root,root)
|
||||
%doc CHANGES LICENSE README.TXT NOTICE
|
||||
%{_httpd_moddir}/mod_security2.so
|
||||
%config(noreplace) %{_httpd_confdir}/*.conf
|
||||
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
||||
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
||||
%endif
|
||||
%dir %{_sysconfdir}/httpd/modsecurity.d
|
||||
%dir %{_sysconfdir}/httpd/modsecurity.d/activated_rules
|
||||
%attr(770,apache,root) %dir %{_localstatedir}/lib/%{name}
|
||||
|
||||
%if %with_mlogc
|
||||
%files -n mlogc
|
||||
%defattr (-,root,root)
|
||||
%doc mlogc/INSTALL
|
||||
%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/mlogc.conf
|
||||
%attr(0755,root,root) %dir %{_localstatedir}/log/mlogc
|
||||
%attr(0770,root,apache) %dir %{_localstatedir}/log/mlogc/data
|
||||
%attr(0755,root,root) %{_bindir}/mlogc
|
||||
%attr(0755,root,root) %{_bindir}/mlogc-batch-load
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jan 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- New 3.x build for Fedora 29.
|
||||
|
||||
850
fedora/SPECS/archive/netatalk.spec
Normal file
850
fedora/SPECS/archive/netatalk.spec
Normal file
@@ -0,0 +1,850 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%global pkgver $(rpm -qls tracker-devel.%{_target_cpu} | grep sparql | grep pc | cut -d"-" -f3 | cut -d"." -f1-2|sort -u)
|
||||
%global with_tracker 1
|
||||
%else
|
||||
%global with_tracker 0
|
||||
%endif
|
||||
|
||||
%global xslver $(rpm -q --queryformat "%%{VERSION}" docbook-style-xsl)
|
||||
|
||||
%global _hardened_build 1
|
||||
|
||||
%global with_acls 1
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%global with_bdb 1
|
||||
%else
|
||||
%global with_bdb 0
|
||||
%endif
|
||||
|
||||
%global with_cracklib 1
|
||||
|
||||
%global with_docbook 1
|
||||
|
||||
%global with_dbus 1
|
||||
|
||||
%global with_dtrace 1
|
||||
|
||||
%global with_ldap 1
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%global with_libevent 1
|
||||
%else
|
||||
%global with_libevent 0
|
||||
%endif
|
||||
|
||||
%global with_mysql 1
|
||||
|
||||
%global with_openafs 0
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%global with_procpsng 1
|
||||
%else
|
||||
%global with_procpsng 0
|
||||
%endif
|
||||
|
||||
%global with_quota 1
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%global with_systemd 1
|
||||
%else
|
||||
%global with_systemd 0
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 28
|
||||
%global with_tcp_wrappers 0
|
||||
%else
|
||||
%global with_tcp_wrappers 1
|
||||
%endif
|
||||
|
||||
Name: netatalk
|
||||
Epoch: 5
|
||||
Version: 3.1.12
|
||||
Release: 0.1%{?dist}
|
||||
Summary: Open Source Apple Filing Protocol(AFP) File Server
|
||||
License: GPLv2+
|
||||
URL: http://netatalk.sourceforge.net
|
||||
Source0: http://download.sourceforge.net/netatalk/netatalk-%{version}.tar.bz2
|
||||
Source1: netatalk.pam-system-auth
|
||||
# From http://www003.upp.so-net.ne.jp/hat/files/netatalk-3.1.7-0.1.fc22.src.rpm
|
||||
Patch0: netatalk-3.0.1-basedir.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: avahi-devel
|
||||
BuildRequires: bison
|
||||
%if 0%{?with_cracklib}
|
||||
BuildRequires: cracklib-devel
|
||||
%endif
|
||||
%if 0%{?with_dbus}
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: dbus-glib-devel
|
||||
%endif
|
||||
%if 0%{?with_docbook}
|
||||
BuildRequires: docbook-style-xsl
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
%if 0%{?with_acls}
|
||||
BuildRequires: libacl-devel
|
||||
%endif
|
||||
BuildRequires: libattr-devel
|
||||
%if 0%{?with_bdb}
|
||||
BuildRequires: libdb-devel
|
||||
%else
|
||||
BuildRequires: db4-devel
|
||||
%endif
|
||||
%if 0%{?with_libevent}
|
||||
BuildRequires: libevent-devel
|
||||
%endif
|
||||
BuildRequires: libgcrypt-devel
|
||||
%if 0%{?with_docbook}
|
||||
BuildRequires: libxslt
|
||||
%endif
|
||||
BuildRequires: krb5-devel
|
||||
%if 0%{?with_mysql}
|
||||
BuildRequires: mysql-devel
|
||||
%endif
|
||||
%if 0%{?with_openafs}
|
||||
BuildRequires: openafs-devel
|
||||
%endif
|
||||
%if 0%{?with_ldap}
|
||||
BuildRequires: openldap-devel
|
||||
%endif
|
||||
BuildRequires: openssl-devel
|
||||
%if 0%{?with_procpsng}
|
||||
BuildRequires: procps-ng
|
||||
%else
|
||||
BuildRequires: procps
|
||||
%endif
|
||||
BuildRequires: pam-devel
|
||||
%if 0%{?with_quota}
|
||||
BuildRequires: quota-devel
|
||||
%endif
|
||||
%if 0%{?with_systemd}
|
||||
BuildRequires: systemd
|
||||
%endif
|
||||
%if 0%{?with_dtrace}
|
||||
BuildRequires: systemtap-sdt-devel
|
||||
%endif
|
||||
%if 0%{?with_tcp_wrappers}
|
||||
BuildRequires: tcp_wrappers-devel
|
||||
%endif
|
||||
BuildRequires: libtdb-devel
|
||||
%if 0%{?with_tracker}
|
||||
BuildRequires: tracker-devel
|
||||
%endif
|
||||
BuildRequires: perl-interpreter
|
||||
|
||||
Requires: dbus-python perl-IO-Socket-INET6
|
||||
%if 0%{?with_tracker}
|
||||
Requires: dconf
|
||||
%endif
|
||||
%if 0%{?with_systemd}
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%else
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig
|
||||
Requires(preun): initscripts
|
||||
Requires(postun): initscripts
|
||||
%endif
|
||||
|
||||
%description
|
||||
Netatalk is a freely-available Open Source AFP file server. A *NIX/*BSD
|
||||
system running Netatalk is capable of serving many Macintosh clients
|
||||
simultaneously as an AppleShare file server (AFP).
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if 0%{?with_libevent}
|
||||
rm -frv libevent/
|
||||
%endif
|
||||
%patch0 -p1
|
||||
|
||||
# Avoid re-running the autotools
|
||||
touch -r aclocal.m4 configure configure.ac macros/gssapi-check.m4
|
||||
|
||||
# fix permissions
|
||||
find include \( -name '*.h' -a -executable \) -exec chmod -x {} \;
|
||||
|
||||
%build
|
||||
%ifarch ppc ppc64 s390 s390x
|
||||
export CFLAGS="$CFLAGS -fsigned-char"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--localstatedir=%{_localstatedir}/lib \
|
||||
%if 0%{?with_acls}
|
||||
--with-acl \
|
||||
%endif
|
||||
%if 0%{?with_cracklib}
|
||||
--with-cracklib \
|
||||
%endif
|
||||
%if 0%{?with_docbook}
|
||||
--with-docbook=%{_datadir}/sgml/docbook/xsl-stylesheets-%{xslver} \
|
||||
%endif
|
||||
--with-kerberos \
|
||||
--with-libgcrypt \
|
||||
--with-pam \
|
||||
--with-pkgconfdir=%{_sysconfdir}/netatalk/ \
|
||||
--with-shadow \
|
||||
--with-tbd=no \
|
||||
--with-uams-path=%{_libdir}/netatalk \
|
||||
--enable-pgp-uam \
|
||||
--enable-shared \
|
||||
--enable-krbV-uam \
|
||||
--enable-overwrite \
|
||||
%if 0%{?with_systemd}
|
||||
--with-init-style=redhat-systemd \
|
||||
%else
|
||||
--with-init-style=redhat-sysv \
|
||||
%endif
|
||||
%if 0%{?with_tracker}
|
||||
--with-spotlight \
|
||||
--with-tracker-pkgconfig-version=%{pkgver} \
|
||||
--with-dbus-daemon=/usr/bin/dbus-daemon \
|
||||
%endif
|
||||
%if 0%{?with_libevent}
|
||||
--without-libevent \
|
||||
--with-libevent-header=%{_includedir} \
|
||||
--with-libevent-lib=%{_libdir} \
|
||||
%endif
|
||||
--without-tdb \
|
||||
--with-bdb \
|
||||
--disable-silent-rules \
|
||||
--disable-static
|
||||
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%make_build
|
||||
%else
|
||||
make %{?_smp_mflags}
|
||||
%endif
|
||||
# Build the local docs.
|
||||
make -C doc/manual html-local
|
||||
|
||||
%install
|
||||
%make_install
|
||||
# Ghost lock dir.
|
||||
mkdir -p %{buildroot}/var/lock/netatalk
|
||||
# Use specific pam conf.
|
||||
install -pm644 %{S:1} %{buildroot}%{_sysconfdir}/pam.d/netatalk
|
||||
|
||||
find %{buildroot} -name '*.la' -delete -print
|
||||
|
||||
%check
|
||||
sh test/afpd/test.sh
|
||||
|
||||
%post
|
||||
%if 0%{?with_systemd}
|
||||
%systemd_post netatalk.service
|
||||
%else
|
||||
chkconfig --add netatalk
|
||||
%endif
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun
|
||||
%if 0%{?with_systemd}
|
||||
%systemd_preun netatalk.service
|
||||
%else
|
||||
if [ $1 -eq 0 ] ; then
|
||||
service netatalk stop &> /dev/null
|
||||
chkconfig --del netatalk &> /dev/null
|
||||
fi
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if 0%{?with_systemd}
|
||||
%systemd_postun_with_restart netatalk.service
|
||||
%else
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
service netatalk condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%endif
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc AUTHORS CONTRIBUTORS NEWS
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||
%license COPYING COPYRIGHT
|
||||
%else
|
||||
%doc COPYING COPYRIGHT
|
||||
%endif
|
||||
%doc doc/manual/*.html
|
||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf
|
||||
%dir %{_sysconfdir}/netatalk
|
||||
%config(noreplace) %{_sysconfdir}/netatalk/afp.conf
|
||||
%config(noreplace) %{_sysconfdir}/netatalk/dbus-session.conf
|
||||
%config(noreplace) %{_sysconfdir}/netatalk/extmap.conf
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/netatalk
|
||||
%{_bindir}/*
|
||||
%exclude %{_bindir}/netatalk-config
|
||||
%{_libdir}/netatalk/
|
||||
%{_libdir}/libatalk.so.*
|
||||
%{_mandir}/man*/*
|
||||
%exclude %{_mandir}/man*/netatalk-config*
|
||||
%{_sbindir}/*
|
||||
%if 0%{?with_systemd}
|
||||
%{_unitdir}/netatalk.service
|
||||
%else
|
||||
%{_initrddir}/netatalk
|
||||
%endif
|
||||
%ghost %dir /var/lock/netatalk
|
||||
%{_localstatedir}/lib
|
||||
|
||||
%files devel
|
||||
%{_bindir}/netatalk-config
|
||||
%{_datadir}/aclocal/netatalk.m4
|
||||
%{_includedir}/atalk/
|
||||
%{_libdir}/libatalk.so
|
||||
%{_mandir}/man*/netatalk-config.1*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 21 2018 HAT <hat@fa2.so-net.ne.jp> - 5:3.1.12-0.1
|
||||
- Update to 3.1.12
|
||||
|
||||
* Wed Oct 31 2018 HAT <hat@fa2.so-net.ne.jp> - 5:3.1.11-1.4
|
||||
- always buildrequres gcc
|
||||
|
||||
* Tue Apr 03 2018 HAT <hat@fa2.so-net.ne.jp> - 5:3.1.11-1.3
|
||||
- always buildrequres perl-interpreter
|
||||
|
||||
* Thu Mar 22 2018 HAT <hat@fa2.so-net.ne.jp> - 5:3.1.11-1.2
|
||||
- If Fedora >=28, don't use tcp_wrappers
|
||||
- If Fedora >=28, buildrequres perl-interpreter
|
||||
|
||||
* Tue Mar 20 2018 HAT <hat@fa2.so-net.ne.jp> - 5:3.1.11-1.1
|
||||
- pam_ck_connector.so isn't always installed (RHBZ#1246465)
|
||||
- require dconf package (RHBZ#1248157)
|
||||
- require perl-IO-Socket-INET6 for asip-status.pl script
|
||||
- define with_ldap (RHBZ#1249403)
|
||||
- The UAM path should be netatalk, not atalk (RHBZ#1249404)
|
||||
- fix multilib conflict of tracker-devel (SF BUG#637)
|
||||
- If el6, use "make %%{?_smp_mflags}", not "%%make_build" macro
|
||||
- If el6, disable tracker
|
||||
- If el6, use db4-devel, not libdb-devel
|
||||
- If el6, use bundled libevent2, not libevent1 package
|
||||
- If el6, use procps, not procps-ng
|
||||
|
||||
* Fri Dec 01 2017 Ryan Breaker <ryan@breaker.rocks> - 3.1.11-1
|
||||
- Revival of package from abandonment.
|
||||
- Update to 3.1.11
|
||||
- Remove patch previously applied to 3.1.7, is now applied to upstream of project
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5:3.1.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Jul 23 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 5:3.1.7-1
|
||||
- Increment epoch. Missed to reset %%release in previous change.
|
||||
|
||||
* Thu Jul 23 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 4:3.1.7-7
|
||||
- Upstream update to 3.1.7 (RHBZ#1134783).
|
||||
- Remove doc from *-devel.
|
||||
- Add %%license.
|
||||
- Update %%description from
|
||||
http://www003.upp.so-net.ne.jp/hat/files/netatalk-3.1.7-0.1.fc22.src.rpm.
|
||||
|
||||
* Thu Jul 23 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 4:3.1.3-4
|
||||
- Address F23FTBFS, RHBZ#1239711:
|
||||
- Add netatalk-3.1.7-autotools.patch (Fix RHBZ#1160730).
|
||||
- Remove ICDumpSuffixMap, netatalk-2.0.2-uams_no_pie.patch,
|
||||
netatalk-2.0.4-extern_ucreator.patch, netatalk-2.2.3-libdb4.patch,
|
||||
netatalk-2.2.3-sigterm.patch (Unused)
|
||||
- Add netatalk-3.0.1-basedir.patch.
|
||||
- Mark %%{_sysconfdir}/dbus-1/system.d/netatalk-dbus.conf noreplace.
|
||||
- Fix permissions on include-files.
|
||||
- Remove duplicate %%global with_mysql.
|
||||
- Enable dbus.
|
||||
- Add missing "fi" in %%preun.
|
||||
- Run /sbin/ldconfig in %%postun, %%preun.
|
||||
- Reflect /var/lock/netatalk is hard-coded into the sources.
|
||||
- Set --localstatedir=/var/lib (/var/netatalk violates FHS).
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:3.1.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:3.1.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Fri Jul 04 2014 Christopher Meng <rpm@cicku.me> - 4:3.1.3-1
|
||||
- Update to 3.1.3
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.2.3-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu Apr 24 2014 Tomáš Mráz <tmraz@redhat.com> - 4:2.2.3-10
|
||||
- Rebuild for new libgcrypt
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.2.3-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 4:2.2.3-8
|
||||
- Perl 5.18 rebuild
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.2.3-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Aug 23 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 4:2.2.3-6
|
||||
- Scriptlets replaced with new systemd macros
|
||||
|
||||
* Fri Jul 27 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 4:2.2.3-5
|
||||
- fixed build issue on f18
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.2.3-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Jul 16 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 4:2.2.3-3
|
||||
- fixes: #835714 - Netatalk 2.2.2-1: Unable to unmount afpd share from OSX
|
||||
client, crashes Finder netatalk-2.2.2-1
|
||||
|
||||
* Tue Jun 12 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 4:2.2.3-2
|
||||
- fixes: #831001 - netatalk pam configuration has invalid entry
|
||||
|
||||
* Mon Jun 04 2012 Lukas Nykryn <lnykryn@redhat.com> 4:2.2.3-1
|
||||
- fixes #828205 - update to latest upstream netatalk-2.2.3
|
||||
|
||||
* Mon Jan 16 2012 Jiri Skala <jskala@redhat.com> - 4:2.2.2-1
|
||||
- fixes #782049 - update to latest upstream netatalk-2.2.2
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Nov 29 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.1-2
|
||||
- fixes #501144 - updated and redirected pam config
|
||||
|
||||
* Tue Nov 29 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.1-1
|
||||
- update to latest upstream netatalk-2.2.1
|
||||
|
||||
* Fri Aug 19 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.0-4
|
||||
- fixes #726928 - BuildRequires: avahi-devel libacl-devel openldap-devel
|
||||
|
||||
* Fri Aug 05 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.0-3
|
||||
- fixed missing epoch in sysvinit subpackage and triggers
|
||||
|
||||
* Thu Aug 04 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.0-2
|
||||
- fixes #714448 - systemd-service
|
||||
- moves SysV initscript to subpackage
|
||||
|
||||
* Fri Jul 29 2011 Jiri Skala <jskala@redhat.com> - 4:2.2.0-1
|
||||
- update to latest upstream netatalk-2.2.0
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.1.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Mon Jan 03 2011 Jiri Skala <jskala@redhat.com> - 4:2.1.5-1
|
||||
- updated to latest upstream version netatalk-2.1.5
|
||||
|
||||
* Mon Oct 18 2010 Jiri Skala <jskala@redhat.com> - 4:2.1.4-1
|
||||
- updated to latest upstream version
|
||||
|
||||
* Mon Jul 12 2010 Jiri Skala <jskala@redhat.com> - 4:2.1.3-1
|
||||
- updated to latest upstream version
|
||||
- added license texts to devel subpackage
|
||||
|
||||
* Wed Jun 30 2010 Jiri Skala <jskala@redhat.com> - 4:2.1.2-1
|
||||
- updated to latest upstream version
|
||||
|
||||
* Fri May 28 2010 Jiri Skala <jskala@redhat.com> - 4:2.1.1-1
|
||||
- updated to latest upstream version
|
||||
- fixes #594999 - Summary and Description are old-fashioned
|
||||
- renamed initscript
|
||||
- initscript modified to be POSIX compliant
|
||||
|
||||
* Wed May 12 2010 Jiri Skala <jskala@redhat.com> - 4:2.1-1
|
||||
- updated to latest upstream version
|
||||
|
||||
* Tue Nov 24 2009 Jiri Skala <jskala@redhat.com> - 4:2.0.5-2
|
||||
- oops forgot upload new sources => shifted release number
|
||||
|
||||
* Tue Nov 24 2009 Jiri Skala <jskala@redhat.com> - 4:2.0.5-1
|
||||
- updated to latest upstream version
|
||||
|
||||
* Mon Nov 23 2009 Jiri Skala <jskala@redhat.com> - 4:2.0.4-5
|
||||
- added BuildRequires: ... libgcrypt-devel
|
||||
- removed outdated atalk.init
|
||||
|
||||
* Tue Sep 15 2009 Jiri Skala <jskala@redhat.com> - 4:2.0.4-4
|
||||
- fixed #473943
|
||||
|
||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 4:2.0.4-3
|
||||
- rebuilt with new openssl
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Tue Jul 14 2009 Jiri Skala <jskala@redhat.com> - 4:2.0.4-1
|
||||
- updated to latest upstream version
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:2.0.3-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Mon Feb 16 2009 Jiri Skala <jskala@redhat.com> -4:2.0.3-26
|
||||
- Resolves #480641 - CVE-2008-5718 netatalk: papd command injection vulnerability
|
||||
|
||||
* Tue Jan 27 2009 Jiri Skala <jskala@redhat.com> -4:2.0.3-25
|
||||
- fixed epoch in the subpackage requires
|
||||
|
||||
* Fri Jan 23 2009 Jiri Skala <jskala@redhat.com> -4:2.0.3-24
|
||||
- fix #473186 conflict timeout with coreutils
|
||||
|
||||
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 4:2.0.3-23
|
||||
- rebuild with new openssl
|
||||
|
||||
* Wed Dec 03 2008 Jiri Skala <jskala@redhat.com> -4:2.0.3-22
|
||||
- fix #473939 netatalk-2.0.3-21.fc10 disable quota
|
||||
|
||||
* Mon Oct 13 2008 Jiri Skala <jskala@redhat.com> - 4:2.0.3-21
|
||||
- fix #465050 - FTBFS netatalk-2.0.3-19 - regenerated patches
|
||||
|
||||
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4:2.0.3-20
|
||||
- fix license tag
|
||||
|
||||
* Thu Mar 06 2008 Martin Nagy <mnagy@redhat.com> - 4:2.0.3-19
|
||||
- fix chmod o+x (#225085)
|
||||
- increase the maximum number of cnid_dbd processes to 512 (#232805)
|
||||
- papd now writes debugging output to stderr when invoked with -d (#150021)
|
||||
- fix multiarch conflict for netatalk-devel (#342681)
|
||||
|
||||
* Mon Feb 25 2008 Martin Nagy <mnagy@redhat.com> - 4:2.0.3-18
|
||||
- make init script LSB compliant (#246993)
|
||||
|
||||
* Mon Feb 25 2008 Martin Nagy <mnagy@redhat.com> - 4:2.0.3-17
|
||||
- fix unowned directories (#233889)
|
||||
|
||||
* Mon Feb 11 2008 Martin Nagy <mnagy@redhat.com> - 4:2.0.3-16
|
||||
- rebuild for gcc-4.3
|
||||
|
||||
* Tue Dec 04 2007 Martin Nagy <mnagy@redhat.com> - 4:2.0.3-15.1
|
||||
- rebuild
|
||||
|
||||
* Wed Sep 12 2007 Maros Barabas <mbarabas@redhat.com> -4:2.0.3-15
|
||||
- patch to build on FC, bad open call
|
||||
|
||||
* Tue Sep 11 2007 Maros Barabas <mbarabas@redhat.com> - 4:2.0.3-13
|
||||
- rebuild
|
||||
|
||||
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 4:2.0.3-12
|
||||
- Rebuild for selinux ppc32 issue.
|
||||
|
||||
* Thu May 10 2007 Maros Barabas <mbarabas@redhat.com> - 4:2.0.4-11
|
||||
- fix from merge review
|
||||
- Resolves #226190
|
||||
|
||||
* Tue Apr 17 2007 Maros Barabas <mbarabas@redhat.com> - 4:2.0.3-10
|
||||
- fix fiew problems in spec
|
||||
|
||||
* Tue Jan 23 2007 Jindrich Novy <jnovy@redhat.com> - 4:2.0.3-9
|
||||
- rebuild against new db4
|
||||
|
||||
* Mon Dec 04 2006 Maros Barabas <mbarabas@redhat.com> - 4:2.0.3-8
|
||||
- BuildRequires changed from cracklib to cracklib-devel
|
||||
|
||||
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 4:2.0.3-7
|
||||
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
|
||||
(#203001)
|
||||
- Add dist tag
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4:2.0.3-6.fc6.1
|
||||
- rebuild
|
||||
|
||||
* Fri Jun 09 2006 Jason Vas Dias <jvdias@redhat.com> - 4:2.0.3-6.fc6
|
||||
- rebuild for broken libgssapi deps and brew build
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4:2.0.3-4.2.1
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Tue Feb 07 2006 Jason Vas Dias <jvdias@redhat.com>
|
||||
- rebuild for new gcc, glibc, glibc-kernheaders
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed Nov 09 2005 Jason Vas Dias <jvdias@redhat.com>
|
||||
- Rebuild for new openssl dependencies
|
||||
|
||||
* Thu Oct 13 2005 Tomas Mraz <tmraz@redhat.com>
|
||||
- use include instead of pam_stack in pam config
|
||||
|
||||
* Wed Jul 20 2005 Bill Nottingham <notting@redhat.com>
|
||||
- don't run by default
|
||||
|
||||
* Thu Jun 16 2005 Jason Vas Dias <jvdias@redhat.com>
|
||||
- Upgrade to upstream version 2.0.3
|
||||
- fix bug 160486: use netatalk's initscript
|
||||
|
||||
* Wed Mar 30 2005 Florian La Roche <laroche@redhat.com>
|
||||
- quick fix: rm -f /usr/include/netatalk/at.h until this
|
||||
is resolved the correct way
|
||||
|
||||
* Mon Mar 07 2005 Jason Vas Dias <jvdias@redhat.com>
|
||||
- Fix for gcc4 compilation: extern_ucreator.patch
|
||||
|
||||
* Mon Feb 21 2005 Jason Vas Dias <jvdias@redhat.com>
|
||||
- Upgraded to upstream version 2.0.2 .
|
||||
|
||||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Wed Jan 07 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||
- 1.6.4
|
||||
|
||||
* Fri Aug 1 2003 Charlie Bennett <ccb@redhat.com>
|
||||
- Update with 1.6.3 upstream sources
|
||||
|
||||
* Tue Jul 29 2003 Elliot Lee <sopwith@redhat.com>
|
||||
- Rebuild
|
||||
- Fix perl multilib path editing
|
||||
- Add pathcat patch
|
||||
|
||||
* Thu May 1 2003 Elliot Lee <sopwith@redhat.com> 1.5.5-7
|
||||
- Make multilib generic
|
||||
- Add builddep on quota (for rpcsvc/rquota.h)
|
||||
|
||||
* Tue Feb 18 2003 Bill Nottingham <notting@redhat.com> 1.5.5-5
|
||||
- fix initscript error (#82118)
|
||||
|
||||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 1.5.5-3
|
||||
- patch for compile errors with new ssl libs
|
||||
- rebuildfedora
|
||||
|
||||
* Mon Dec 02 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||
- postun should never fail
|
||||
|
||||
* Thu Nov 28 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.5-1
|
||||
- Updated to 1.5.5
|
||||
|
||||
* Tue Jun 25 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.3.1-4
|
||||
- Fixed dependancy problem on /usr/bin/rc by removing acleandir.[1|rc] (#67243)
|
||||
- Fixed missing /usr/share/netatalk dir (#67222)
|
||||
|
||||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.5.3.1-2
|
||||
- automated rebuild
|
||||
|
||||
* Tue Jun 18 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.3.1-1
|
||||
- Updated to latest version 1.5.3.1.
|
||||
- Fixed bug for nls file lookup (#66300).
|
||||
|
||||
* Mon May 27 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.2-4
|
||||
- Fixed initscript bug where you can't use blanks inside of names (#64926).
|
||||
|
||||
* Wed Apr 10 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.2-3
|
||||
- Fixed initscript to use correct config files from /etc/atalk (#62803)
|
||||
- Changed initscript to use $0 instead of direct string (#61734)
|
||||
- Change Copyright to Licencse and switch from BSD to GPL (#61746)
|
||||
|
||||
* Thu Mar 14 2002 Bill Nottingham <notting@redhat.com>
|
||||
- don't run by default
|
||||
|
||||
* Wed Mar 13 2002 Bill Nottingham <notting@redhat.com>
|
||||
- it's back
|
||||
|
||||
* Fri Mar 2 2001 Tim Powers <timp@redhat.com>
|
||||
- rebuilt against openssl-0.9.6-1
|
||||
|
||||
* Sun Feb 25 2001 Tim Powers <timp@redhat.com>
|
||||
- fixed bug 29370. This package is trying to include a file glibc already includes
|
||||
|
||||
* Tue Jan 23 2001 Tim Powers <timp@redhat.com>
|
||||
- updated initscript
|
||||
|
||||
* Thu Jan 04 2001 Than Ngo <than@redhat.com>
|
||||
- fixed uams-path
|
||||
- added noreplace to %%config
|
||||
|
||||
* Mon Nov 20 2000 Tim Powers <timp@redhat.com>
|
||||
- rebuilt to fix bad dir perms
|
||||
|
||||
* Fri Nov 10 2000 Than Ngo <than@redhat.com>
|
||||
- update to 1.5pre2 (bug #19737, #20397)
|
||||
- update Url and ftp site
|
||||
- clean up specfile
|
||||
- netatalk-1.4b2+asun obsolete
|
||||
|
||||
* Mon Aug 07 2000 Than Ngo <than@redhat.de>
|
||||
- fix dependency with glibc-devel (Bug #15589)
|
||||
- fix typo in description (Bug #15479)
|
||||
|
||||
* Wed Aug 2 2000 Tim Powers <timp@redhat.com>
|
||||
- fix symlinks not being relative.
|
||||
|
||||
* Fri Jul 28 2000 Than Ngo <than@redhat.de>
|
||||
- add missing restart function in startup script
|
||||
|
||||
* Fri Jul 28 2000 Tim Powers <timp@redhat.com>
|
||||
- fixed initscripts so that condrestart doesn't return 1 when the test fails
|
||||
|
||||
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Sun Jul 23 2000 Tim Powers <timp@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Mon Jul 17 2000 Tim Powers <timp@redhat.com>
|
||||
- inits back to rc.d/init.d, using service to start inits
|
||||
|
||||
* Wed Jul 12 2000 Than Ngo <than@redhat.de>
|
||||
- rebuilt
|
||||
|
||||
* Thu Jul 06 2000 Tim Powers <timp@redhat.com>
|
||||
- fixed broken PreReq, now PreReq's /etc/init.d
|
||||
|
||||
* Tue Jun 27 2000 Than Ngo <than@redhat.de>
|
||||
- remove prereq initscripts, add requires initscripts
|
||||
- clean up specfile
|
||||
|
||||
* Mon Jun 26 2000 Than Ngo <than@redhat.de>
|
||||
- /etc/rc.d/init.d -> /etc/init.d
|
||||
- add condrestart directive
|
||||
- fix post/preun/postun scripts
|
||||
- prereq initscripts >= 5.20
|
||||
|
||||
* Tue Jun 20 2000 Tim Powers <timp@redhat.com>
|
||||
- fixed bug 11420 concerning the building with -O2.
|
||||
|
||||
* Thu Jun 8 2000 Tim Powers <timp@redhat.com>
|
||||
- fix bug #11978
|
||||
- fix man page locations to be FHS compliant
|
||||
|
||||
* Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- modify PAM setup to use system-auth
|
||||
|
||||
* Thu Dec 16 1999 Tim Powers <timp@redhat.com>
|
||||
- renewed source so it is pristine, delete the problematic files in spec file
|
||||
instead
|
||||
- general spec file cleanups, create buildroot and dirs in the %%install
|
||||
section
|
||||
- strip binaries
|
||||
- gzip man pages
|
||||
- fixed netatalk-asun.librpcsvc.patch, -lnss_nis too
|
||||
- changed group
|
||||
- added %%defattr to %%files section
|
||||
|
||||
* Tue Aug 3 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- rpm-3.0 needs to remove vogus files from source.
|
||||
Removed files: etc/papd/.#magics.c, etc/.#diff
|
||||
|
||||
* Fri Jul 30 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Change Copyright tag to BSD.
|
||||
Add /usr/bin/adv1tov2.
|
||||
|
||||
* Thu Apr 22 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Correct librpcsvc.patch. Move %%changelog section last.
|
||||
Uncomment again -DNEED_QUOTA_WRAPPER in sys/linux/Makefile since
|
||||
LinuxPPC may need.
|
||||
|
||||
* Wed Mar 31 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Comment out -DNEED_QUOTA_WRAPPER in sys/linux/Makefile.
|
||||
|
||||
* Sat Mar 20 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Correct symbolic links to psf.
|
||||
|
||||
Remove asciize function from nbplkup so as to display Japanese hostname.
|
||||
* Thu Mar 11 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
|
||||
- Included MacPerl 5 script ICDumpSuffixMap which dumps suffix mapping
|
||||
containd in Internet Config Preference.
|
||||
|
||||
* Tue Mar 2 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- [asun2.1.3]
|
||||
|
||||
* Mon Feb 15 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- [pre-asun2.1.2-8]
|
||||
|
||||
* Sun Feb 7 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- [pre-asun2.1.2-6]
|
||||
|
||||
* Mon Jan 25 1999 iNOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- [pre-asun2.1.2-3]
|
||||
|
||||
* Thu Dec 17 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- [pre-asun2.1.2]
|
||||
Remove crlf patch. It is now a server's option.
|
||||
|
||||
* Thu Dec 3 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use stable version source netatalk-1.4b2+asun2.1.1.tar.gz
|
||||
Add uams directory
|
||||
|
||||
* Sat Nov 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.1-3 source.
|
||||
|
||||
* Mon Nov 23 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.1-2 source.
|
||||
|
||||
* Mon Nov 16 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Fix rcX.d's symbolic links.
|
||||
|
||||
* Wed Oct 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0a-2 source. Remove '%%exclusiveos linux' line.
|
||||
|
||||
* Sat Oct 24 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use stable version source netatalk-1.4b2+asun2.1.0.tar.gz.
|
||||
|
||||
* Mon Oct 5 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0-10a source.
|
||||
|
||||
* Sat Sep 19 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0-8 source. Add chkconfig support.
|
||||
|
||||
* Sat Sep 12 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Comment out -DCRLF. Use RPM_OPT_FLAGS.
|
||||
|
||||
* Tue Sep 8 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0-7 source. Rename atalk.init to atalk.
|
||||
|
||||
* Sat Aug 22 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0-6 source.
|
||||
|
||||
* Mon Jul 27 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use pre-asun2.1.0-5 source.
|
||||
|
||||
* Tue Jul 21 1998 INOUE Koichi <inoue@ma.ns.musashi-techa.c.jp>
|
||||
- Use pre-asun2.1.0-3 source.
|
||||
|
||||
* Tue Jul 7 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Add afpovertcp entries to /etc/services
|
||||
- Remove BuildRoot in man8 pages
|
||||
|
||||
* Mon Jun 29 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
|
||||
- Use modified sources 1.4b2+asun2.1.0 produced by Adrian Sun
|
||||
<asun@saul9.u.washington.edu> to provide an AppleShareIP file server
|
||||
|
||||
- Included AppleVolumes.system file maintained by Johnson
|
||||
<johnson@stpt.usf.edu>
|
||||
|
||||
* Mon Aug 25 1997 David Gibson <D.Gibson@student.anu.edu.au>
|
||||
- Used a buildroot
|
||||
- Use RPM_OPT_FLAGS
|
||||
- Moved configuration parameters/files from atalk.init to /etc/atalk
|
||||
- Separated devel package
|
||||
- Built with shared libraries
|
||||
|
||||
* Sun Jul 13 1997 Paul H. Hargrove <hargrove@sccm.Stanford.EDU>
|
||||
- Updated sources from 1.3.3 to 1.4b2
|
||||
- Included endian patch for Linux/SPARC
|
||||
- Use all the configuration files supplied in the source. This has the
|
||||
following advantages over the ones in the previous rpm release:
|
||||
+ The printer 'lp' isn't automatically placed in papd.conf
|
||||
+ The default file conversion is binary rather than text.
|
||||
- Automatically add and remove DDP services from /etc/services
|
||||
- Placed the recommended /etc/services in the documentation
|
||||
- Changed atalk.init to give daemons a soft kill
|
||||
- Changed atalk.init to make configuration easier
|
||||
|
||||
* Wed May 28 1997 Mark Cornick <mcornick@zorak.gsfc.nasa.gov>
|
||||
- Updated for /etc/pam.d
|
||||
49
fedora/SPECS/archive/perl-Audio-Cuefile-Parser.spec
Normal file
49
fedora/SPECS/archive/perl-Audio-Cuefile-Parser.spec
Normal file
@@ -0,0 +1,49 @@
|
||||
# END SourceDeps(oneline)
|
||||
%define module_version 0.02
|
||||
%define module_name Audio-Cuefile-Parser
|
||||
%define _unpackaged_files_terminate_build 1
|
||||
BuildRequires: perl-devel perl-podlators
|
||||
BuildRequires: perl-ExtUtils-MakeMaker
|
||||
|
||||
Name: perl-%module_name
|
||||
Version: 0.02
|
||||
Release: 1%{?dist}
|
||||
Summary: perl module %module_name
|
||||
Group: Development/Perl
|
||||
License: perl
|
||||
Url: %module_name
|
||||
|
||||
Source0: http://cpan.org.ua/authors/id/M/MA/MATTK/%module_name-%module_version.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
%summary
|
||||
|
||||
%prep
|
||||
%setup -n %module_name
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%files
|
||||
%doc README Changes
|
||||
%perl_vendorlib/A*
|
||||
%_mandir/man3/Audio::Cuefile::Parser.3pm.gz
|
||||
|
||||
%changelog
|
||||
* Thu Sep 19 2013 Igor Vlasenko <viy@altlinux.ru> 0.02-alt1
|
||||
- initial import by package builder
|
||||
|
||||
43
fedora/SPECS/archive/perl-Audio-Scan.spec
Normal file
43
fedora/SPECS/archive/perl-Audio-Scan.spec
Normal file
@@ -0,0 +1,43 @@
|
||||
Name: perl-Audio-Scan
|
||||
Version: 0.93
|
||||
Release: 1%{?dist}
|
||||
Summary: Fast C metadata and tag reader for all common audio file formats
|
||||
License: GPLv2+
|
||||
URL: http://search.cpan.org/dist/Audio-Scan/
|
||||
Source0: http://www.cpan.org/authors/id/A/AG/AGRUNDMA/Audio-Scan-%{version}.tar.gz
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::Warn)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Audio::Scan is a C-based scanner for audio file metadata and tag
|
||||
information. It currently supports MP3, MP4, Ogg Vorbis, FLAC, ASF, WAV,
|
||||
AIFF, Musepack, Monkey's Audio, and WavPack.
|
||||
|
||||
%prep
|
||||
%setup -q -n Audio-Scan-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes COPYING README README.win32
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Audio*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Sun Aug 03 2014 Hans de Goede <hdegoede@redhat.com> - 0.93-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
47
fedora/SPECS/archive/perl-IO-AIO.spec
Normal file
47
fedora/SPECS/archive/perl-IO-AIO.spec
Normal file
@@ -0,0 +1,47 @@
|
||||
Name: perl-IO-AIO
|
||||
Version: 3.71
|
||||
Release: 1%{?dist}
|
||||
Summary: Asynchronous Input/Output
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/IO-AIO/
|
||||
Source0: http://www.cpan.org/modules/by-module/IO/IO-AIO-%{version}.tar.gz
|
||||
BuildRequires: perl(common::sense)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
Requires: perl(common::sense)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module implements asynchronous I/O using whatever means your operating
|
||||
system supports. It is implemented as an interface to libeio
|
||||
(http://software.schmorp.de/pkg/libeio.html).
|
||||
|
||||
%prep
|
||||
%setup -q -n IO-AIO-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes COPYING README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/IO*
|
||||
%{_mandir}/man3/*
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Sat Aug 09 2014 Hans de Goede <hdegoede@redhat.com> - 3.71-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
51
fedora/SPECS/archive/perl-Image-Scale.spec
Normal file
51
fedora/SPECS/archive/perl-Image-Scale.spec
Normal file
@@ -0,0 +1,51 @@
|
||||
Name: perl-Image-Scale
|
||||
Version: 0.08
|
||||
Release: 1%{?dist}
|
||||
Summary: Fast, high-quality fixed-point image resizing
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Image-Scale/
|
||||
Source0: http://www.cpan.org/authors/id/A/AG/AGRUNDMA/Image-Scale-%{version}.tar.gz
|
||||
# Fix compilation with libpng-1.6
|
||||
Patch0: Image-Scale-0.08-libpng16.patch
|
||||
# https://rt.cpan.org/Public/Bug/Display.html?id=93417
|
||||
Patch1: Image-Scale-0.08-arm-asm.patch
|
||||
BuildRequires: libpng-devel libjpeg-devel giflib-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::NoWarnings)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module implements several resizing algorithms with a focus on low
|
||||
overhead, speed and minimal features. Algorithms available are:
|
||||
|
||||
%prep
|
||||
%setup -q -n Image-Scale-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
# Makefile.PL only searches in lib not lib64 for libgif, specify libdir
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" --with-gif-libs=%{_libdir}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README README.win32 TODO
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Image*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Sun Aug 03 2014 Hans de Goede <hdegoede@redhat.com> - 0.08-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
55
fedora/SPECS/archive/perl-MP3-Cut-Gapless.spec
Normal file
55
fedora/SPECS/archive/perl-MP3-Cut-Gapless.spec
Normal file
@@ -0,0 +1,55 @@
|
||||
Name: perl-MP3-Cut-Gapless
|
||||
Version: 0.03
|
||||
Release: 1%{?dist}
|
||||
Summary: Split an MP3 file without gaps (based on pcutmp3)
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/MP3-Cut-Gapless/
|
||||
Source0: http://www.cpan.org/authors/id/A/AG/AGRUNDMA/MP3-Cut-Gapless-%{version}.tar.gz
|
||||
BuildRequires: perl(Audio::Cuefile::Parser)
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Spec)
|
||||
Requires: perl(Audio::Cuefile::Parser)
|
||||
Requires: perl(Digest::MD5)
|
||||
Requires: perl(File::Path)
|
||||
Requires: perl(File::Spec)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module performs sample-granular splitting of an MP3 file. Most MP3
|
||||
splitters only split on frame boundaries which can leave gaps or noise
|
||||
between files due to MP3's bit reservoir. This module, which is based on
|
||||
the Java pcutmp3 tool, rewrites the LAME tag and adjusts the audio frames
|
||||
as necessary to make the split completely gapless when played with a
|
||||
compatible decoder that supports LAME encoder delay and padding.
|
||||
|
||||
%prep
|
||||
%setup -q -n MP3-Cut-Gapless-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes TODO
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/MP3*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Aug 08 2014 Hans de Goede <hdegoede@redhat.com> - 0.03-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
90
fedora/SPECS/archive/perl-Nagios-Plugin.spec
Normal file
90
fedora/SPECS/archive/perl-Nagios-Plugin.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package perl-Nagios-Plugin
|
||||
#
|
||||
|
||||
# You can easy replace the Nagios::Plugin entries in scripts:
|
||||
# sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' *.pl
|
||||
|
||||
%define cpan_name Monitoring-Plugin
|
||||
|
||||
Name: perl-%cpan_name
|
||||
Summary: A family of perl modules to streamline writing Nagios plugins
|
||||
License: Artistic-1.0 ; GPL-2.0+
|
||||
Group: Development/Languages/Perl
|
||||
Version: 0.39
|
||||
%if "%{_vendor}" == "redhat"
|
||||
Release: 01%{?dist}
|
||||
%else
|
||||
Release: 01.%{_distro}
|
||||
%endif
|
||||
Url: http://search.cpan.org/dist/Monitoring-Plugin/
|
||||
Provides: %cpan_name = %{version}-%{release}
|
||||
Provides: Nagios-Plugin
|
||||
Obsoletes: perl-Nagios-Plugin
|
||||
%perl_requires
|
||||
Requires: perl-Class-Accessor
|
||||
Requires: perl-Config-Tiny
|
||||
Requires: perl-Math-Calc-Units
|
||||
Requires: perl-Params-Validate
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-Class-Accessor
|
||||
BuildRequires: perl-Config-Tiny
|
||||
BuildRequires: perl-Math-Calc-Units
|
||||
BuildRequires: perl-Params-Validate
|
||||
BuildRequires: perl-ExtUtils-MakeMaker
|
||||
BuildRequires: perl-Test-Simple
|
||||
BuildRequires: perl-macros
|
||||
Source: %cpan_name-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
Monitoring::Plugin and its associated Monitoring::Plugin::* modules are a family of
|
||||
perl modules to streamline writing Monitoring plugins. The main end user modules
|
||||
are Monitoring::Plugin, providing an object-oriented interface to the entire
|
||||
Monitoring::Plugin::* collection, and Monitoring::Plugin::Functions, providing a
|
||||
simpler functional interface to a useful subset of the available functionality.
|
||||
|
||||
The purpose of the collection is to make it as simple as possible for
|
||||
developers to create plugins that conform the Monitoring Plugin guidelines
|
||||
(http://nagiosplug.sourceforge.net/developer-guidelines.html).
|
||||
|
||||
%prep
|
||||
%setup -q -n %cpan_name-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if 0%{?fedora} > 18 && 0%{?rhel} >= 6 && 0%{?suse_version} >= 1010
|
||||
%check
|
||||
make test
|
||||
%endif
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
|
||||
%post
|
||||
# only execute the replacement, if it is an update!
|
||||
if [ -d "/usr/lib64/nagios/plugins" ]; then
|
||||
cd /usr/lib64/nagios/plugins && \
|
||||
for f in `grep -l 'Nagios::Plugin' *`; do sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' $f; done
|
||||
elif [ -d "/usr/lib/nagios/plugins" ]; then
|
||||
cd /usr/lib/nagios/plugins && \
|
||||
for f in `grep -l 'Nagios::Plugin' *`; do sed -i -e 's/Nagios::Plugin/Monitoring::Plugin/g' $f; done
|
||||
fi
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes MANIFEST README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Monitoring
|
||||
%{perl_vendorarch}/auto/Monitoring
|
||||
|
||||
%changelog
|
||||
* Tue Apr 7 2015 <daniel.steiner@trivadis.com>
|
||||
- Update to 0.38 version.
|
||||
* Thu Dec 18 2014 <daniel.steiner@trivadis.com>
|
||||
- New initial package, but is forked of perl-Nagios-Plugin.
|
||||
130
fedora/SPECS/archive/perl-Net-Netmask.spec
Normal file
130
fedora/SPECS/archive/perl-Net-Netmask.spec
Normal file
@@ -0,0 +1,130 @@
|
||||
Name: perl-Net-Netmask
|
||||
Version: 1.9021
|
||||
Release: 1%{?dist}
|
||||
Summary: Perl module for manipulation and lookup of IP network blocks
|
||||
|
||||
Group: Development/Libraries
|
||||
License: Copyright only
|
||||
URL: http://search.cpan.org/dist/Net-Netmask/
|
||||
Source0: http://www.cpan.org/authors/id/M/MU/MUIR/modules/Net-Netmask-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Net::Netmask parses and understands IPv4 CIDR blocks. It's built with
|
||||
an object-oriented interface. Nearly all functions are methods that
|
||||
operate on a Net::Netmask object.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Net-Netmask-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/Net/*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Dec 14 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9021-1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.9015-14
|
||||
- Perl 5.18 rebuild
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.9015-11
|
||||
- Perl 5.16 rebuild
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.9015-9
|
||||
- Perl mass rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.9015-7
|
||||
- 661697 rebuild for fixing problems with vendorach/lib
|
||||
|
||||
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.9015-6
|
||||
- Mass rebuild with perl-5.12.0
|
||||
|
||||
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.9015-5
|
||||
- rebuild against perl 5.10.1
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9015-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Mon Jun 30 2008 Paul Howarth <paul@city-fan.org> - 1.9015-2
|
||||
- Add perl(:MODULE_COMPAT...) dependency (#449362)
|
||||
- Remove redundant buildreq perl
|
||||
- Fix "make check" syntax
|
||||
- Fix argument order for find with -depth
|
||||
|
||||
* Thu Sep 27 2007 Warren Togami <wtogami@redhat.com> - 1.9015-1
|
||||
- 1.9015, update license tag
|
||||
|
||||
* Thu Sep 14 2006 Warren Togami <wtogami@redhat.com> - 1.9012-3
|
||||
- rebuild for FC6
|
||||
|
||||
* Fri May 20 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.9012-2
|
||||
- 1.9012, use canonical CPAN URL in Source0.
|
||||
|
||||
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.9011-2
|
||||
- rebuilt
|
||||
|
||||
* Sun Aug 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.9011-1
|
||||
- Update to 1.9011.
|
||||
- Bring up to date with current fedora.us Perl spec template.
|
||||
|
||||
* Sun Feb 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.9007-0.fdr.2
|
||||
- Reduce directory ownership bloat.
|
||||
- Run tests in the %%check section.
|
||||
|
||||
* Sat Feb 07 2004 Warren Togami <warren@togami.com> - 0:1.9007-0.fdr.1
|
||||
- upgrade to 1.9007
|
||||
|
||||
* Thu Nov 13 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.9004-0.fdr.2
|
||||
- Specfile rewrite.
|
||||
|
||||
* Fri Sep 19 2003 Warren Togami <warren@togami.com> - 1.9004-0.fdr.1
|
||||
- Specfile autogenerated.
|
||||
62
fedora/SPECS/archive/perl-Time-HiRes.spec
Normal file
62
fedora/SPECS/archive/perl-Time-HiRes.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
Name: perl-Time-HiRes
|
||||
Version: 1.9746
|
||||
Release: 1%{?dist}
|
||||
Summary: High resolution alarm, sleep, gettimeofday, interval timers
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/Time-HiRes/
|
||||
Source0: http://www.cpan.org/authors/id/J/JH/JHI/Time-HiRes-%{version}.tar.gz
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::Constant)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(strict)
|
||||
# Run-time:
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(Exporter)
|
||||
# Tests:
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional tests:
|
||||
BuildRequires: perl(POSIX)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
The Time::HiRes module implements a Perl interface to the usleep, nanosleep,
|
||||
ualarm, gettimeofday, and setitimer/getitimer system calls, in other words,
|
||||
high resolution time and timers.
|
||||
|
||||
%prep
|
||||
%setup -q -n Time-HiRes-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README TODO
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Time*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Sat Sep 1 2018 Daniel Steiner <daniel.steiner@greenmail.ch> - 1.9746-1
|
||||
- This version is required for pnp-nagios process-perfdata.pl script. Do not install a higher version!
|
||||
|
||||
81
fedora/SPECS/archive/photivo.spec
Normal file
81
fedora/SPECS/archive/photivo.spec
Normal file
@@ -0,0 +1,81 @@
|
||||
%define _version 1117rev5d7d1cc4ef4d
|
||||
|
||||
Name: photivo
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Photo processor
|
||||
Group: Graphics
|
||||
License: GPLv3+
|
||||
URL: http://photivo.org
|
||||
Source: %{name}-%{_version}.tar.gz
|
||||
BuildRequires: gcc-c++ libgomp qt4-devel libtool-ltdl-devel
|
||||
BuildRequires: exiv2-devel lensfun-devel fftw3-devel liblqr-1-devel
|
||||
BuildRequires: GraphicsMagick-c++-devel libjpeg-devel libtiff-devel libpng-devel bzip2-devel
|
||||
BuildRequires: lcms-devel lcms2-devel lzma-devel
|
||||
BuildRequires: gimp-devel
|
||||
|
||||
%description
|
||||
Photivo is a free and open source photo processor. It handles RAW files
|
||||
as well as bitmap files in a non-destructive 16 bit processing pipe with
|
||||
gimp workflow integration and batch mode.
|
||||
|
||||
Photivo tries to provide the best algorithms available; even if this
|
||||
implies some redundancy. So, to my knowledge, it offers the most
|
||||
flexible and powerful denoise, sharpen and local contrast (fake HDR)
|
||||
algorithms in the open source world. (If not, let's port them )
|
||||
Although, to get the desired results, there may be a quite steep
|
||||
learning curve.
|
||||
|
||||
Photivo is just a developer, no manager and no Gimp. It is intended to
|
||||
be used in a workflow together with digiKam/F-Spot/Shotwell and Gimp. It
|
||||
needs a quite strong computer and is not aimed at beginners.
|
||||
|
||||
%package gimp
|
||||
Summary: Photivo plugin for Gimp
|
||||
Group: Graphics
|
||||
Requires: %name = %version-%release
|
||||
|
||||
%description gimp
|
||||
Photivo is a free and open source photo processor. It handles RAW files
|
||||
as well as bitmap files in a non-destructive 16 bit processing pipe with
|
||||
gimp workflow integration and batch mode.
|
||||
|
||||
This package provides Photivo plugin for Gimp.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{_version}
|
||||
sed -i 's|lensfun\.h|lensfun/lensfun.h|' Sources/ptConstants.h Sources/ptImage.h Sources/ptImage_Lensfun.cpp Sources/ptLensfun.h
|
||||
|
||||
%build
|
||||
qmake-qt5 PREFIX=%_prefix CONFIG-=debug CONFIG+=WithGimp CONFIG+=WithAdobeProfiles
|
||||
make
|
||||
|
||||
%install
|
||||
make INSTALL_ROOT=%buildroot install
|
||||
install -pD -m755 ptGimp %buildroot%_libdir/gimp/2.0/plug-ins/ptGimp
|
||||
# install utilities
|
||||
#install -pD -m755 ptClear %buildroot%_bindir/PtClear
|
||||
#chmod 755 %buildroot%_bindir/ptClear
|
||||
#ln -s ptClear %buildroot%_bindir/%name-clear
|
||||
#install -pD -m755 ptCreateAdobeProfiles %buildroot%_bindir/ptCreateAdobeProfiles
|
||||
#ln -s ptCreateAdobeProfiles %buildroot%_bindir/%name-CreateAdobeProfiles
|
||||
#install -pD -m755 ptCreateCurves %buildroot%_bindir/ptCreateCurves
|
||||
#ln -s ptCreateCurves %buildroot%_bindir/%name-CreateCurves
|
||||
# fix permissions under %_datadir/%name
|
||||
find %buildroot%_datadir/%name -type f -print0|xargs -r0 chmod 644 --
|
||||
rm -rf %buildroot$HOME/.local
|
||||
chmod +x %buildroot%_bindir/*
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%_bindir/*
|
||||
%_datadir/%name
|
||||
%_datadir/applications/*
|
||||
%_datadir/pixmaps/photivo-appicon.png
|
||||
|
||||
%files gimp
|
||||
%_libdir/gimp/2.0/plug-ins/*
|
||||
|
||||
%changelog
|
||||
* Sat Apr 29 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- First build for Fedora 25
|
||||
123
fedora/SPECS/archive/scite.spec
Normal file
123
fedora/SPECS/archive/scite.spec
Normal file
@@ -0,0 +1,123 @@
|
||||
Name: scite
|
||||
Version: 3.3.1
|
||||
Release: 0.20130507.0%{?dist}
|
||||
Summary: SCIntilla based text editor
|
||||
License: MIT
|
||||
Group: Applications/Editors
|
||||
Url: http://www.scintilla.org/SciTE.html
|
||||
|
||||
Source0: http://download.sourceforge.net/scintilla/scite331.tgz
|
||||
|
||||
Patch1: 0001-scintilla-makefile-flags.patch
|
||||
Patch2: 0002-scite-makefile.patch
|
||||
Patch3: 0003-scite-utf8.patch
|
||||
Patch4: 0004-Remove-OPTFLAGS.patch
|
||||
Patch5: 0005-Rework-CXXFLAGS.patch
|
||||
|
||||
# Default to build against gtk3
|
||||
%bcond_without gtk3
|
||||
|
||||
%{!?with_gtk2:BuildRequires: gtk2-devel}
|
||||
%{?with_gtk3:BuildRequires: gtk3-devel}
|
||||
BuildRequires: desktop-file-utils
|
||||
|
||||
%description
|
||||
SciTE is a SCIntilla based Text Editor. Originally built to demonstrate
|
||||
Scintilla, it has grown to be a generally useful editor with facilities for
|
||||
building and running programs.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C scintilla/gtk %{?with_gtk3:GTK3=1}
|
||||
make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C scite/gtk %{?with_gtk3:GTK3=1}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} -C scite/gtk install %{?with_gtk3:GTK3=1}
|
||||
ln -s SciTE %{buildroot}%{_bindir}/scite
|
||||
|
||||
# include man-page
|
||||
install -d -m755 %{buildroot}%{_mandir}/man1/
|
||||
install -m644 scite/doc/scite.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
--remove-category Application \
|
||||
%{buildroot}%{_datadir}/applications/SciTE.desktop
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc scite/License.txt
|
||||
%{_mandir}/man1/scite.1*
|
||||
%{_bindir}/SciTE
|
||||
%{_bindir}/scite
|
||||
%{_datadir}/scite/
|
||||
%{_datadir}/pixmaps/*
|
||||
%{_datadir}/applications/*
|
||||
|
||||
%changelog
|
||||
* Tue May 07 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 3.3.1-0.20130507.0
|
||||
- Update to scite-3.3.1.
|
||||
- Modernize spec file.
|
||||
- Add support for gtk2/gtk3. Build against gtk3.
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sat Dec 4 2010 Jorge Torres <jtorresh@gmail.com> 2.22-1
|
||||
- Update to 2.22
|
||||
|
||||
* Sat Apr 17 2010 Jorge Torres <jtorresh@gmail.com> 2.11-1
|
||||
- Update to 2.11
|
||||
- Fix bug #564689
|
||||
|
||||
* Thu Oct 1 2009 Jorge Torres <jtorresh@gmail.com> 2.01-1
|
||||
- Update to 2.01
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.77-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Sat Apr 4 2009 Jorge Torres <jtorresh@gmail.com> 1.77-1
|
||||
- Upgrade to 1.77
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.74-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.74-3
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.74-2
|
||||
- Rebuild for selinux ppc32 issue.
|
||||
|
||||
* Wed Jun 20 2007 Jorge Torres <jtorresh@gmail.com> 1.74-1
|
||||
- Upgrade to 1.74.
|
||||
- Default to UTF-8 encoding (fixes bug #240558).
|
||||
- Remove iconv workaround for desktop file encoding.
|
||||
|
||||
* Fri Sep 01 2006 Jorge Torres <jtorresh@gmail.com> 1.71-1
|
||||
- Upgrade to 1.71
|
||||
- Use 'iconv' to work around a desktop file encoding issue
|
||||
|
||||
* Thu Jun 22 2006 Jorge Torres <jtorresh@gmail.com> 1.70-1
|
||||
- Upgrade to 1.70
|
||||
- Drop man-page capitalization patch
|
||||
|
||||
* Sun Jun 04 2006 Jorge Torres <jtorresh@gmail.com> 1.69-3
|
||||
- Remove usage of MultipleArgs in desktop file.
|
||||
|
||||
* Fri Jun 02 2006 Jorge Torres <jtorresh@gmail.com> 1.69-2
|
||||
- Changed license to MIT.
|
||||
- Added patches to support compiling with %%{optflags}.
|
||||
- Misc fixes.
|
||||
|
||||
* Thu Jun 01 2006 Jorge Torres <jtorresh@gmail.com> 1.69-1
|
||||
- Initial package version.
|
||||
81
fedora/SPECS/archive/semaphore.spec
Normal file
81
fedora/SPECS/archive/semaphore.spec
Normal file
@@ -0,0 +1,81 @@
|
||||
Name: semaphore
|
||||
Version: 2.5.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Open Source alternative to Ansible Tower
|
||||
|
||||
Group: Development/Tools
|
||||
License: MIT
|
||||
URL: https://github.com/ansible-semaphore/semaphore
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}-systemd
|
||||
Source2: %{name}-config.json
|
||||
Source3: %{name}-sysconfig
|
||||
Source4: check-port-connection.sh
|
||||
|
||||
%define user %name
|
||||
%define group %name
|
||||
|
||||
#BuildRequires:
|
||||
#Requires:
|
||||
|
||||
%description
|
||||
Open Source alternative to Ansible Tower
|
||||
|
||||
%prep
|
||||
tar xzf %{S:0}
|
||||
|
||||
%install
|
||||
install -D %name %{buildroot}%{_bindir}/%name
|
||||
install -D %{S:1} %{buildroot}%{_unitdir}/%name.service
|
||||
install -D %{S:2} %{buildroot}%{_sysconfdir}/%name/config.json
|
||||
install -D %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%name
|
||||
install -D %{S:4} %{buildroot}/opt/jobs/check-port-connection.sh
|
||||
install -d %{buildroot}%{_rundir}/%name
|
||||
install -d %{buildroot}%{_var}/ansible
|
||||
|
||||
%pre
|
||||
getent group %{group} > /dev/null || groupadd -r %{group}
|
||||
getent passwd %{user} > /dev/null || \
|
||||
useradd -r -d /home/%name -g %{user} \
|
||||
-s /sbin/nologin -c "Semaphore user" %{user}
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%if 0%{?using_systemd}
|
||||
%if 0%{?systemd_macro_scriptlet}
|
||||
%systemd_post %{name}.service
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if 0%{?using_systemd}
|
||||
%if 0%{?systemd_macro_scriptlet}
|
||||
%systemd_preun %{name}.service
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if 0%{?using_systemd}
|
||||
%if 0%{?systemd_macro_scriptlet}
|
||||
%systemd_preun %name.service
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%attr(755,%user,%group) %{_bindir}/%name
|
||||
%attr(755,root,root) /opt/jobs/check-port-connection.sh
|
||||
%attr(644,%user,%group) %{_unitdir}/%name.service
|
||||
%attr(640,%user,%group) %config(noreplace) %{_sysconfdir}/%name/config.json
|
||||
%attr(640,%user,%group) %config %{_sysconfdir}/sysconfig/%name
|
||||
%attr(750,%user,%group) %dir %{_var}/ansible
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 20 2018 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Pre exec script added for systemctl to check db availability.
|
||||
|
||||
* Sun Aug 12 2018 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Initial build for Fedora 28
|
||||
|
||||
684
fedora/SPECS/archive/tomcat.spec
Normal file
684
fedora/SPECS/archive/tomcat.spec
Normal file
@@ -0,0 +1,684 @@
|
||||
# Copyright (c) 2000-2008, JPackage Project
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name of the JPackage Project nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
%global jspspec 2.3
|
||||
%global major_version 9
|
||||
%global minor_version 0
|
||||
%global micro_version 19
|
||||
%global packdname apache-tomcat-%{version}-src
|
||||
%global servletspec 4.0
|
||||
%global elspec 3.0
|
||||
%global tcuid 91
|
||||
# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
|
||||
%global native_version 1.2.14
|
||||
|
||||
|
||||
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
|
||||
%global basedir %{_var}/lib/%{name}
|
||||
%global appdir %{basedir}/webapps
|
||||
%global homedir %{_datadir}/%{name}
|
||||
%global bindir %{homedir}/bin
|
||||
%global confdir %{_sysconfdir}/%{name}
|
||||
%global libdir %{_javadir}/%{name}
|
||||
%global logdir %{_var}/log/%{name}
|
||||
%global cachedir %{_var}/cache/%{name}
|
||||
%global tempdir %{cachedir}/temp
|
||||
%global workdir %{cachedir}/work
|
||||
%global _systemddir /lib/systemd/system
|
||||
|
||||
# Fedora doesn't seem to have this macro, so we define it if it doesn't exist
|
||||
%{!?_mavendepmapfragdir: %global _mavendepmapfragdir /usr/share/maven-metadata}
|
||||
# Fedora 24 erroneously uses %%{_datadir}/maven-fragments instead of /maven-metadata for some reason...
|
||||
# Override the mavendepmapfragdir var on fc24
|
||||
%{?fc24: %global _mavendepmapfragdir /usr/share/maven-metadata}
|
||||
|
||||
Name: tomcat
|
||||
Epoch: 1
|
||||
Version: %{major_version}.%{minor_version}.%{micro_version}
|
||||
Release: 1%{?dist}
|
||||
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://tomcat.apache.org/
|
||||
Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
|
||||
Source1: %{name}-%{major_version}.%{minor_version}.conf
|
||||
Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
|
||||
Source4: %{name}-%{major_version}.%{minor_version}.wrapper
|
||||
Source5: %{name}-%{major_version}.%{minor_version}.logrotate
|
||||
Source6: %{name}-%{major_version}.%{minor_version}-digest.script
|
||||
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
|
||||
Source8: servlet-api-OSGi-MANIFEST.MF
|
||||
Source9: jsp-api-OSGi-MANIFEST.MF
|
||||
Source11: %{name}-%{major_version}.%{minor_version}.service
|
||||
Source12: el-api-OSGi-MANIFEST.MF
|
||||
Source13: jasper-el-OSGi-MANIFEST.MF
|
||||
Source14: jasper-OSGi-MANIFEST.MF
|
||||
Source15: tomcat-api-OSGi-MANIFEST.MF
|
||||
Source16: tomcat-juli-OSGi-MANIFEST.MF
|
||||
Source20: %{name}-%{major_version}.%{minor_version}-jsvc.service
|
||||
Source21: tomcat-functions
|
||||
Source30: tomcat-preamble
|
||||
Source31: tomcat-server
|
||||
Source32: tomcat-named.service
|
||||
|
||||
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
||||
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
||||
Patch2: %{name}-build.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: ecj >= 1:4.6.1
|
||||
BuildRequires: findutils
|
||||
BuildRequires: apache-commons-collections
|
||||
BuildRequires: apache-commons-daemon
|
||||
BuildRequires: apache-commons-dbcp
|
||||
BuildRequires: apache-commons-pool
|
||||
BuildRequires: tomcat-taglibs-standard
|
||||
BuildRequires: java-devel >= 1:1.8.0
|
||||
BuildRequires: jpackage-utils >= 0:1.7.0
|
||||
%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
|
||||
# add_maven_depmap is deprecated, using javapackages-local for now
|
||||
# See https://fedora-java.github.io/howto/latest/#_add_maven_depmap_macro
|
||||
BuildRequires: javapackages-local
|
||||
%endif
|
||||
BuildRequires: junit
|
||||
BuildRequires: geronimo-jaxrpc
|
||||
BuildRequires: geronimo-saaj
|
||||
BuildRequires: aqute-bnd
|
||||
BuildRequires: aqute-bndlib
|
||||
BuildRequires: wsdl4j
|
||||
BuildRequires: systemd
|
||||
|
||||
Requires: apache-commons-daemon
|
||||
Requires: apache-commons-collections
|
||||
Requires: apache-commons-dbcp
|
||||
Requires: apache-commons-pool
|
||||
Requires: java-headless >= 1:1.8.0
|
||||
Requires: jpackage-utils
|
||||
Requires: procps
|
||||
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
||||
Recommends: tomcat-native >= %{native_version}
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
||||
# added after log4j sub-package was removed
|
||||
Provides: %{name}-log4j = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description
|
||||
Tomcat is the servlet container that is used in the official Reference
|
||||
Implementation for the Java Servlet and JavaServer Pages technologies.
|
||||
The Java Servlet and JavaServer Pages specifications are developed by
|
||||
Sun under the Java Community Process.
|
||||
|
||||
Tomcat is developed in an open and participatory environment and
|
||||
released under the Apache Software License version 2.0. Tomcat is intended
|
||||
to be a collaboration of the best-of-breed developers from around the world.
|
||||
|
||||
%package admin-webapps
|
||||
Summary: The host-manager and manager web applications for Apache Tomcat
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description admin-webapps
|
||||
The host-manager and manager web applications for Apache Tomcat.
|
||||
|
||||
%package docs-webapp
|
||||
Summary: The docs web application for Apache Tomcat
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description docs-webapp
|
||||
The docs web application for Apache Tomcat.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc generated documentation for Apache Tomcat
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
Javadoc generated documentation for Apache Tomcat.
|
||||
|
||||
%package jsvc
|
||||
Summary: Apache jsvc wrapper for Apache Tomcat as separate service
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
Requires: apache-commons-daemon-jsvc
|
||||
|
||||
%description jsvc
|
||||
Systemd service to start tomcat with jsvc,
|
||||
which allows tomcat to perform some privileged operations
|
||||
(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.
|
||||
|
||||
%package jsp-%{jspspec}-api
|
||||
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
|
||||
Provides: jsp = %{jspspec}
|
||||
Obsoletes: %{name}-jsp-2.2-api
|
||||
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
||||
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description jsp-%{jspspec}-api
|
||||
Apache Tomcat JSP API Implementation Classes.
|
||||
|
||||
%package lib
|
||||
Summary: Libraries needed to run the Tomcat Web container
|
||||
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
|
||||
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
||||
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
||||
Requires: ecj >= 1:4.6.1
|
||||
Requires: apache-commons-collections
|
||||
Requires: apache-commons-dbcp
|
||||
Requires: apache-commons-pool
|
||||
Requires(preun): coreutils
|
||||
|
||||
%description lib
|
||||
Libraries needed to run the Tomcat Web container.
|
||||
|
||||
%package servlet-%{servletspec}-api
|
||||
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
|
||||
Provides: servlet = %{servletspec}
|
||||
Provides: servlet6
|
||||
Provides: servlet3
|
||||
Obsoletes: %{name}-servlet-3.1-api
|
||||
|
||||
%description servlet-%{servletspec}-api
|
||||
Apache Tomcat Servlet API Implementation Classes.
|
||||
|
||||
%package el-%{elspec}-api
|
||||
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
|
||||
Provides: el_api = %{elspec}
|
||||
Obsoletes: %{name}-el-2.2-api
|
||||
|
||||
%description el-%{elspec}-api
|
||||
Apache Tomcat EL API Implementation Classes.
|
||||
|
||||
%package webapps
|
||||
Summary: The ROOT and examples web applications for Apache Tomcat
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
Requires: tomcat-taglibs-standard >= 0:1.1
|
||||
|
||||
%description webapps
|
||||
The ROOT and examples web applications for Apache Tomcat.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{packdname}
|
||||
# remove pre-built binaries and windows files
|
||||
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
||||
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
||||
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
%patch2 -p0
|
||||
|
||||
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
|
||||
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar
|
||||
|
||||
%build
|
||||
export OPT_JAR_LIST="xalan-j2-serializer"
|
||||
# we don't care about the tarballs and we're going to replace
|
||||
# tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
|
||||
# so just create a dummy file for later removal
|
||||
touch HACK
|
||||
|
||||
# who needs a build.properties file anyway
|
||||
%{ant} -Dbase.path="." \
|
||||
-Dbuild.compiler="modern" \
|
||||
-Dcommons-collections.jar="$(build-classpath apache-commons-collections)" \
|
||||
-Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
|
||||
-Dcommons-daemon.native.src.tgz="HACK" \
|
||||
-Djdt.jar="$(build-classpath ecj)" \
|
||||
-Dtomcat-native.tar.gz="HACK" \
|
||||
-Dtomcat-native.home="." \
|
||||
-Dcommons-daemon.native.win.mgr.exe="HACK" \
|
||||
-Dnsis.exe="HACK" \
|
||||
-Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
|
||||
-Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
|
||||
-Dsaaj-api.jar="$(build-classpath geronimo-saaj)" \
|
||||
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
|
||||
-Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
|
||||
-Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
|
||||
-Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
|
||||
-Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
|
||||
-Dno.build.dbcp=true \
|
||||
-Dversion="%{version}" \
|
||||
-Dversion.build="%{micro_version}" \
|
||||
-Djava.7.home=%{java_home} \
|
||||
-Dexecute.validate=false \
|
||||
deploy dist-prepare dist-source javadoc
|
||||
|
||||
# remove some jars that we'll replace with symlinks later
|
||||
%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
|
||||
pushd output/dist/src/webapps/docs/appdev/sample/src
|
||||
%{__mkdir_p} ../web/WEB-INF/classes
|
||||
%{javac} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
|
||||
pushd ../web
|
||||
%{jar} cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
|
||||
popd
|
||||
popd
|
||||
|
||||
# inject OSGi manifests
|
||||
mkdir -p META-INF
|
||||
cp -p %{SOURCE8} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/servlet-api.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE9} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/jsp-api.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE12} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/el-api.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE13} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/jasper-el.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE14} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/jasper.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE15} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/lib/tomcat-api.jar META-INF/MANIFEST.MF
|
||||
cp -p %{SOURCE16} META-INF/MANIFEST.MF
|
||||
touch META-INF/MANIFEST.MF
|
||||
zip output/build/bin/tomcat-juli.jar META-INF/MANIFEST.MF
|
||||
|
||||
%install
|
||||
# build initial path structure
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d
|
||||
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
|
||||
/bin/touch ${RPM_BUILD_ROOT}%{logdir}/catalina.out
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
|
||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}
|
||||
|
||||
# move things into place
|
||||
# First copy supporting libs to tomcat lib
|
||||
pushd output/build
|
||||
%{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
|
||||
%{__cp} -a conf/*.{policy,properties,xml,xsd} ${RPM_BUILD_ROOT}%{confdir}
|
||||
%{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
|
||||
%{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir}
|
||||
popd
|
||||
# javadoc
|
||||
%{__cp} -a output/dist/webapps/docs/api/* ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
|
||||
|
||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
|
||||
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
|
||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
|
||||
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
|
||||
%{__install} -m 0644 %{SOURCE4} \
|
||||
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
|
||||
%{__install} -m 0644 %{SOURCE11} \
|
||||
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
|
||||
%{__install} -m 0644 %{SOURCE20} \
|
||||
${RPM_BUILD_ROOT}%{_unitdir}/%{name}-jsvc.service
|
||||
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
|
||||
> ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
|
||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
|
||||
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
|
||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
|
||||
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
|
||||
|
||||
%{__install} -m 0644 %{SOURCE21} \
|
||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
|
||||
%{__install} -m 0755 %{SOURCE30} \
|
||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
|
||||
%{__install} -m 0755 %{SOURCE31} \
|
||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
|
||||
%{__install} -m 0644 %{SOURCE32} \
|
||||
${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
|
||||
|
||||
# Substitute libnames in catalina-tasks.xml
|
||||
sed -i \
|
||||
"s,el-api.jar,%{name}-el-%{elspec}-api.jar,;
|
||||
s,servlet-api.jar,%{name}-servlet-%{servletspec}-api.jar,;
|
||||
s,jsp-api.jar,%{name}-jsp-%{jspspec}-api.jar,;" \
|
||||
${RPM_BUILD_ROOT}%{bindir}/catalina-tasks.xml
|
||||
|
||||
# create jsp and servlet API symlinks
|
||||
pushd ${RPM_BUILD_ROOT}%{_javadir}
|
||||
%{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
|
||||
%{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
|
||||
%{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
|
||||
%{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
|
||||
%{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
|
||||
%{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
|
||||
popd
|
||||
|
||||
pushd output/build
|
||||
%{_bindir}/build-jar-repository lib apache-commons-collections \
|
||||
apache-commons-dbcp apache-commons-pool ecj 2>&1
|
||||
# need to use -p here with b-j-r otherwise the examples webapp fails to
|
||||
# load with a java.io.IOException
|
||||
%{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
|
||||
tomcat-taglibs-standard/taglibs-standard-impl.jar tomcat-taglibs-standard/taglibs-standard-compat.jar 2>&1
|
||||
popd
|
||||
|
||||
pushd ${RPM_BUILD_ROOT}%{libdir}
|
||||
# symlink JSP and servlet API jars
|
||||
%{__ln_s} ../../java/%{name}-jsp-%{jspspec}-api.jar .
|
||||
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
|
||||
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
|
||||
%{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar
|
||||
%{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar
|
||||
%{__ln_s} $(build-classpath apache-commons-pool) commons-pool.jar
|
||||
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
||||
|
||||
# Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
|
||||
%{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
|
||||
popd
|
||||
|
||||
# symlink to the FHS locations where we've installed things
|
||||
pushd ${RPM_BUILD_ROOT}%{homedir}
|
||||
%{__ln_s} %{appdir} webapps
|
||||
%{__ln_s} %{confdir} conf
|
||||
%{__ln_s} %{libdir} lib
|
||||
%{__ln_s} %{logdir} logs
|
||||
%{__ln_s} %{tempdir} temp
|
||||
%{__ln_s} %{workdir} work
|
||||
popd
|
||||
|
||||
# install sample webapp
|
||||
%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/sample
|
||||
pushd ${RPM_BUILD_ROOT}%{appdir}/sample
|
||||
%{jar} xf ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
|
||||
popd
|
||||
%{__rm} ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
|
||||
|
||||
# Allow linking for example webapp
|
||||
%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
|
||||
pushd ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>' > context.xml
|
||||
echo '<Context>' >> context.xml
|
||||
echo ' <Resources allowLinking="true" />' >> context.xml
|
||||
echo '</Context>' >> context.xml
|
||||
popd
|
||||
|
||||
pushd ${RPM_BUILD_ROOT}%{appdir}/examples/WEB-INF/lib
|
||||
%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) jstl.jar
|
||||
%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) standard.jar
|
||||
popd
|
||||
|
||||
|
||||
# Install the maven metadata
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
|
||||
pushd output/dist/src/res/maven
|
||||
for pom in *.pom; do
|
||||
# fix-up version in all pom files
|
||||
sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
|
||||
done
|
||||
|
||||
# we won't install dbcp, juli-adapters and juli-extras pom files
|
||||
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
|
||||
%{__cp} -a %{name}-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-$libname.pom
|
||||
%add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar -f "tomcat-lib"
|
||||
done
|
||||
|
||||
# tomcat-util-scan
|
||||
%{__cp} -a %{name}-util-scan.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-util-scan.pom
|
||||
%add_maven_depmap JPP.%{name}-util-scan.pom %{name}/%{name}-util-scan.jar -f "tomcat-lib"
|
||||
|
||||
# tomcat-jni
|
||||
%{__cp} -a %{name}-jni.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-jni.pom
|
||||
%add_maven_depmap JPP.%{name}-jni.pom %{name}/%{name}-jni.jar -f "tomcat-lib"
|
||||
|
||||
# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
|
||||
%{__cp} -a tomcat-jsp-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
|
||||
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -f "tomcat-jsp-api" -a "org.eclipse.jetty.orbit:javax.servlet.jsp"
|
||||
|
||||
%{__cp} -a tomcat-el-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-el-api.pom
|
||||
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -f "tomcat-el-api" -a "org.eclipse.jetty.orbit:javax.el"
|
||||
|
||||
%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
|
||||
# Generate a depmap fragment javax.servlet:servlet-api pointing to
|
||||
# tomcat-servlet-3.0-api for backwards compatibility
|
||||
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
|
||||
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f "tomcat-servlet-api"
|
||||
|
||||
# replace temporary copy with link
|
||||
%{__ln_s} -f $(abs2rel %{bindir}/tomcat-juli.jar %{libdir}) ${RPM_BUILD_ROOT}%{libdir}/
|
||||
|
||||
# two special pom where jar files have different names
|
||||
%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
|
||||
%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar
|
||||
|
||||
%{__cp} -a tomcat-coyote.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-coyote.pom %{name}/tomcat-coyote.jar
|
||||
|
||||
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
|
||||
|
||||
%{__cp} -a tomcat-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-api.pom %{name}/tomcat-api.jar
|
||||
|
||||
%{__cp} -a tomcat-util.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-util.pom %{name}/tomcat-util.jar
|
||||
|
||||
%{__cp} -a tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-jdbc.pom %{name}/tomcat-jdbc.jar
|
||||
|
||||
# tomcat-websocket-api
|
||||
%{__cp} -a tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
|
||||
%add_maven_depmap JPP.%{name}-websocket-api.pom %{name}/websocket-api.jar
|
||||
|
||||
# tomcat-tomcat-websocket
|
||||
%{__cp} -a tomcat-websocket.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
|
||||
%add_maven_depmap JPP.%{name}-tomcat-websocket.pom %{name}/tomcat-websocket.jar
|
||||
|
||||
# tomcat-jaspic-api
|
||||
%{__cp} -a tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
|
||||
%add_maven_depmap JPP.%{name}-jaspic-api.pom %{name}/jaspic-api.jar
|
||||
|
||||
|
||||
%pre
|
||||
# add the tomcat user and group
|
||||
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
|
||||
%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
|
||||
-s /sbin/nologin -r -d %{homedir} tomcat 2>/dev/null || :
|
||||
|
||||
%post
|
||||
# install but don't activate
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%post jsp-%{jspspec}-api
|
||||
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
|
||||
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
|
||||
|
||||
%post servlet-%{servletspec}-api
|
||||
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
|
||||
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
|
||||
|
||||
%post el-%{elspec}-api
|
||||
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
|
||||
%{_javadir}/%{name}-el-%{elspec}-api.jar 20300
|
||||
|
||||
%preun
|
||||
# clean tempdir and workdir on removal or upgrade
|
||||
%{__rm} -rf %{workdir}/* %{tempdir}/*
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%postun jsp-%{jspspec}-api
|
||||
if [ "$1" = "0" ]; then
|
||||
%{_sbindir}/update-alternatives --remove jsp \
|
||||
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar
|
||||
fi
|
||||
|
||||
%postun servlet-%{servletspec}-api
|
||||
if [ "$1" = "0" ]; then
|
||||
%{_sbindir}/update-alternatives --remove servlet \
|
||||
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar
|
||||
fi
|
||||
|
||||
%postun el-%{elspec}-api
|
||||
if [ "$1" = "0" ]; then
|
||||
%{_sbindir}/update-alternatives --remove elspec \
|
||||
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(0664,root,tomcat,0755)
|
||||
%doc {LICENSE,NOTICE,RELEASE*}
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-digest
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
|
||||
%attr(0755,root,root) %{_sbindir}/%{name}
|
||||
%attr(0644,root,root) %{_unitdir}/%{name}.service
|
||||
%attr(0644,root,root) %{_unitdir}/%{name}@.service
|
||||
%attr(0755,root,root) %dir %{_libexecdir}/%{name}
|
||||
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
|
||||
%attr(0644,root,root) %{_libexecdir}/%{name}/functions
|
||||
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
|
||||
%attr(0755,root,root) %{_libexecdir}/%{name}/server
|
||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||
%attr(0755,root,tomcat) %dir %{basedir}
|
||||
%attr(0755,root,tomcat) %dir %{confdir}
|
||||
|
||||
%defattr(0664,tomcat,root,0770)
|
||||
%attr(0770,tomcat,root) %dir %{logdir}
|
||||
|
||||
%defattr(0664,root,tomcat,0770)
|
||||
%attr(0770,root,tomcat) %dir %{cachedir}
|
||||
%attr(0770,root,tomcat) %dir %{tempdir}
|
||||
%attr(0770,root,tomcat) %dir %{workdir}
|
||||
|
||||
%defattr(0644,root,tomcat,0775)
|
||||
%attr(0775,root,tomcat) %dir %{appdir}
|
||||
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
|
||||
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
|
||||
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
|
||||
%{confdir}/conf.d/README
|
||||
%config(noreplace) %{confdir}/%{name}.conf
|
||||
%config(noreplace) %{confdir}/*.policy
|
||||
%config(noreplace) %{confdir}/*.properties
|
||||
%config(noreplace) %{confdir}/context.xml
|
||||
%config(noreplace) %{confdir}/server.xml
|
||||
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
|
||||
%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd
|
||||
%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
|
||||
%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd
|
||||
%config(noreplace) %{confdir}/web.xml
|
||||
%dir %{homedir}
|
||||
%{bindir}/bootstrap.jar
|
||||
%{bindir}/catalina-tasks.xml
|
||||
%{homedir}/lib
|
||||
%{homedir}/temp
|
||||
%{homedir}/webapps
|
||||
%{homedir}/work
|
||||
%{homedir}/logs
|
||||
%{homedir}/conf
|
||||
|
||||
%files admin-webapps
|
||||
%defattr(0664,root,tomcat,0755)
|
||||
%{appdir}/host-manager
|
||||
%{appdir}/manager
|
||||
|
||||
%files docs-webapp
|
||||
%{appdir}/docs
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%files jsp-%{jspspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-jsp-api
|
||||
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
|
||||
|
||||
%files lib -f output/dist/src/res/maven/.mfiles-tomcat-lib
|
||||
%dir %{libdir}
|
||||
%{libdir}/*.jar
|
||||
%{_javadir}/*.jar
|
||||
%{bindir}/tomcat-juli.jar
|
||||
%{_mavenpomdir}/JPP.%{name}-annotations-api.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-catalina-ha.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-catalina.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-jasper-el.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-jasper.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
|
||||
%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
|
||||
%{_datadir}/maven-metadata/tomcat.xml
|
||||
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
|
||||
%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar
|
||||
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
|
||||
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar
|
||||
|
||||
%files servlet-%{servletspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-servlet-api
|
||||
%doc LICENSE
|
||||
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
|
||||
|
||||
%files el-%{elspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-el-api
|
||||
%doc LICENSE
|
||||
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
||||
%{libdir}/%{name}-el-%{elspec}-api.jar
|
||||
|
||||
%files webapps
|
||||
%defattr(0644,tomcat,tomcat,0755)
|
||||
%{appdir}/ROOT
|
||||
%{appdir}/examples
|
||||
%{appdir}/sample
|
||||
|
||||
%files jsvc
|
||||
%defattr(755,root,root,0755)
|
||||
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
|
||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
|
||||
|
||||
%changelog
|
||||
* Sat May 11 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Upgrade to 9.0.19.
|
||||
|
||||
* Thu Feb 14 2019 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- First own tomcat package
|
||||
|
||||
68
fedora/SPECS/archive/virt-backup.spec
Normal file
68
fedora/SPECS/archive/virt-backup.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
Summary: backup script for libvirt managed VM
|
||||
Name: virt-backup
|
||||
Version: 0.2.21
|
||||
Release: 1%{?dist}
|
||||
Source0: %{name}-%{version}-1.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
License: GPL
|
||||
Group: Virtualization
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Prefix: %{_prefix}
|
||||
Requires: lvm2
|
||||
Requires: util-linux
|
||||
Requires: lzop, bzip2, gzip, xz
|
||||
Requires: perl(Sys::Virt) => 0.2.3
|
||||
Requires: perl(XML::Simple)
|
||||
Requires: perl(LockFile::Simple)
|
||||
Requires: fuse, qemu
|
||||
|
||||
AutoReq: no
|
||||
|
||||
%description
|
||||
This package provides a helper script to backup
|
||||
libvirt managed virtual machines with minimal downtime
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%if %{?fedora}%{?rhel} <= 5
|
||||
sed -i -e "s|/sbin/lvcreate|/usr/sbin/lvcreate|g" \
|
||||
-e "s|/sbin/lvremove|/usr/sbin/lvremove|g" \
|
||||
-e "s|/sbin/lvs|/usr/sbin/lvs|g" \
|
||||
virt-backup
|
||||
%endif
|
||||
|
||||
# Install backup script
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/
|
||||
%{__install} -m 0755 virt-backup $RPM_BUILD_ROOT%{_bindir}/
|
||||
|
||||
# Create backup dir
|
||||
%{__mkdir_p} $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/backup
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_bindir}/*
|
||||
%dir %attr(0770, qemu, qemu) %{_localstatedir}/lib/libvirt/backup
|
||||
|
||||
%changelog
|
||||
* Sun Apr 14 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- Initial build.
|
||||
|
||||
228
fedora/SPECS/archive/w3perl.spec
Normal file
228
fedora/SPECS/archive/w3perl.spec
Normal file
@@ -0,0 +1,228 @@
|
||||
%define name w3perl
|
||||
%define version 3.19
|
||||
%define release 1%{?dist}
|
||||
%define basedir /var/www/w3perl
|
||||
%define docs %{basedir}/docs
|
||||
%define cfg1 %{basedir}/config
|
||||
%define cfg2 %{basedir}/resources/admin
|
||||
%define cgi /var/www/cgi-bin/w3perl
|
||||
%define perl_path %(which perl)
|
||||
%define mod_conf w3perl.conf
|
||||
%define urpmi_readme_doc %{_defaultdocdir}/%{name}
|
||||
|
||||
Summary: Web/ftp/mail/squid/cups/dhcp/ssh server log file analyzer
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
Source0: http://www.w3perl.com/download/%{name}-%{version}.tar.bz2
|
||||
License: GPLv3+
|
||||
Group: Networking/WWW
|
||||
URL: http://www.w3perl.com/
|
||||
BuildRequires: perl >= 5.0
|
||||
Requires: perl >= 5.0
|
||||
Requires: webserver
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Prefix: %{basedir}
|
||||
Prefix: %{cgi}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
W3Perl is a free web log file analyzer which is also able to parse FTP,
|
||||
Mail, CUPS, DHCP, SSH and Squid log files.
|
||||
|
||||
It is one of the most powerful package as it includes advanced stats
|
||||
like real-time, sessions, URL mapping along with classical
|
||||
stats like hosts, pages, traffic, countries, agents, referrers, errors,
|
||||
file types, robots, search engines and much more.
|
||||
|
||||
It supports most logfile formats, including Apache (CLF, ECLF, NECLF)
|
||||
or IIS (W3C, Microsoft or any variation). Logs can be daily or monthly
|
||||
split and/or compressed.
|
||||
|
||||
A web administration tool allows you to manage your configuration
|
||||
files to customize your stats output. A demo is available at
|
||||
http://www.w3perl.com/demo/
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{perl_path} install.pl -r $RPM_BUILD_ROOT -i $RPM_BUILD_ROOT%{basedir} -d $RPM_BUILD_ROOT%{cgi} -p %{perl_path}
|
||||
ln -sf install.pl %{buildroot}%{basedir}/upgrade.pl
|
||||
|
||||
# Web app config file
|
||||
cat <<EOF > %{mod_conf}
|
||||
Alias /%{name} %{basedir}
|
||||
<Directory %{basedir}>
|
||||
Allow from all
|
||||
</Directory>
|
||||
EOF
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
|
||||
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{mod_conf}
|
||||
|
||||
cat > README.urpmi <<EOF
|
||||
|
||||
--- W3Perl has been successfully installed ---
|
||||
|
||||
The resource files are located in %{basedir}
|
||||
The cgi scripts are located in %{cgi}
|
||||
|
||||
In order to get your stats :
|
||||
1- First, password protect the %{basedir}/admin directory
|
||||
* add an htaccess file or/and add your IP in %{basedir}/admin/pass.txt
|
||||
2- Open a browser to http://127.0.0.1/w3perl/admin
|
||||
3- Build your own configuration file
|
||||
* use 'clone' to start from a predefined configuration file
|
||||
4- Compute your stats either from web admin OR command line
|
||||
4a -> Web admin : Select 'Init all stats' with your configuration file
|
||||
4b -> Command line : Run cron-w3perl.pl -a -c <your config file>
|
||||
5- When completed, go back to admin and view the output
|
||||
|
||||
EOF
|
||||
|
||||
# No need to ship the license if it's standard
|
||||
rm -f %{buildroot}%{basedir}/LICENCE
|
||||
|
||||
|
||||
%post
|
||||
|
||||
# Relocatable
|
||||
if test "x$RPM_INSTALL_PREFIX1" != "x" ; then
|
||||
perl -pi -e "s|conf_file = \"%{cgi}|conf_file = \"$RPM_INSTALL_PREFIX1| if (/\# install/)" $RPM_INSTALL_PREFIX1/libw3perl.pl
|
||||
perl -pi -e "s|cgipath = \"%{cgi}|cgipath = \"$RPM_INSTALL_PREFIX1| if (/\# cgipath_install/);" $RPM_INSTALL_PREFIX1/libw3perl.pl
|
||||
perl -pi -e "s|require \"%{cgi}|require \"$RPM_INSTALL_PREFIX1| if (/check_modules/);" $RPM_INSTALL_PREFIX1/libw3perl.pl
|
||||
perl -pi -e "s|cgipath = \"%{cgi}|cgipath = \"$RPM_INSTALL_PREFIX1|" $RPM_INSTALL_PREFIX1/init.pl
|
||||
perl -pi -e "s|w3perlpath = \"%{basedir}|w3perlpath = \"$RPM_INSTALL_PREFIX0|" $RPM_INSTALL_PREFIX1/init.pl
|
||||
perl -pi -e "s|require \"%{cgi}|require \"$RPM_INSTALL_PREFIX1|;" $RPM_INSTALL_PREFIX1/confstat.pl
|
||||
perl -pi -e "s|Alias \/%{name} %{basedir}|Alias \/%{name} $RPM_INSTALL_PREFIX0|;" %{_sysconfdir}/httpd/conf/webapps.d/%{mod_conf}
|
||||
perl -pi -e "s|Directory %{basedir}|Directory $RPM_INSTALL_PREFIX0|;" %{_sysconfdir}/httpd/conf/webapps.d/%{mod_conf}
|
||||
perl -pi -e "s|^Perl\s(.*)|Perl %{perl_path}|;" $RPM_INSTALL_PREFIX0/upgrade.txt
|
||||
perl -pi -e "s|%{basedir}|$RPM_INSTALL_PREFIX0|;" $RPM_INSTALL_PREFIX0/upgrade.txt
|
||||
perl -pi -e "s|%{cgi}|$RPM_INSTALL_PREFIX1|;" $RPM_INSTALL_PREFIX0/upgrade.txt
|
||||
perl -pi -e "s|%{basedir}|$RPM_INSTALL_PREFIX0|;" %{urpmi_readme_doc}/README.urpmi
|
||||
perl -pi -e "s|%{cgi}|$RPM_INSTALL_PREFIX1|;" %{urpmi_readme_doc}/README.urpmi
|
||||
fi
|
||||
|
||||
# Upgrade
|
||||
if [ "$1" = "2" ]; then
|
||||
%{perl_path} $RPM_INSTALL_PREFIX0/upgrade.pl -i $RPM_INSTALL_PREFIX0 -d $RPM_INSTALL_PREFIX1
|
||||
echo
|
||||
echo "--- W3Perl has been successfully upgraded to %{version} ---"
|
||||
echo
|
||||
fi
|
||||
rm $RPM_INSTALL_PREFIX0/libw3perl.pl
|
||||
rm $RPM_INSTALL_PREFIX0/cron-*
|
||||
rm $RPM_INSTALL_PREFIX0/check_modules.pl
|
||||
rm $RPM_INSTALL_PREFIX0/admin/scripts/*.pl
|
||||
rm $RPM_INSTALL_PREFIX0/config/config-ftp-iis.pl
|
||||
rm $RPM_INSTALL_PREFIX0/config/config-iis.pl
|
||||
rm $RPM_INSTALL_PREFIX0/config/config-win-abyss.pl
|
||||
rm $RPM_INSTALL_PREFIX0/config/config-win-apache.pl
|
||||
rm $RPM_INSTALL_PREFIX0/config/config-win.pl
|
||||
rm $RPM_INSTALL_PREFIX0/resources/admin/config-ftp-iis
|
||||
rm $RPM_INSTALL_PREFIX0/resources/admin/config-iis
|
||||
rm $RPM_INSTALL_PREFIX0/resources/admin/config-win-abyss
|
||||
rm $RPM_INSTALL_PREFIX0/resources/admin/config-win-apache
|
||||
rm $RPM_INSTALL_PREFIX0/resources/admin/config-win
|
||||
rm -r $RPM_INSTALL_PREFIX0/tools/windows
|
||||
|
||||
if [ -f /var/lock/subsys/httpd ]; then
|
||||
%{_initrddir}/httpd restart 1>&2;
|
||||
fi
|
||||
|
||||
if [ "$1" = "1" ]; then
|
||||
cat %{urpmi_readme_doc}/README.urpmi
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ "$1" = "0" ]; then
|
||||
if [ -f /var/lock/subsys/httpd ]; then
|
||||
%{_initrddir}/httpd restart 1>&2
|
||||
fi
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%doc README.urpmi
|
||||
%doc %{basedir}/README
|
||||
%doc %{basedir}/VERSION
|
||||
#%doc %{basedir}/LICENSE
|
||||
%doc %{docs}
|
||||
%{basedir}/INSTALL
|
||||
|
||||
%{basedir}/index.html
|
||||
%attr(0755,-,-) %{basedir}/*.pl
|
||||
%{basedir}/upgrade.txt
|
||||
|
||||
%{basedir}/admin
|
||||
%{basedir}/logs
|
||||
%{basedir}/tools
|
||||
%dir %{basedir}/resources
|
||||
%dir %{basedir}
|
||||
|
||||
%{basedir}/resources/*.jpg
|
||||
%{basedir}/resources/*.gif
|
||||
%{basedir}/resources/*.png
|
||||
%{basedir}/resources/*.ico
|
||||
%{basedir}/resources/*.nsi
|
||||
%{basedir}/resources/*.spec
|
||||
%{basedir}/resources/fileext
|
||||
%{basedir}/resources/pays-conv
|
||||
%{basedir}/resources/upgrade
|
||||
%{basedir}/resources/virus
|
||||
%{basedir}/resources/new_package
|
||||
%{basedir}/resources/convert_jvectormap.pl
|
||||
%{basedir}/resources/jvectormap_convert.cmd
|
||||
%{basedir}/resources/robot.txt
|
||||
%{basedir}/resources/gpl.txt
|
||||
%{basedir}/resources/referrer-standard.txt
|
||||
%{basedir}/resources/referrer-keyword.txt
|
||||
%{basedir}/resources/resolv_users.csv.example
|
||||
%{basedir}/resources/spip
|
||||
%{basedir}/resources/css
|
||||
%{basedir}/resources/js
|
||||
%{basedir}/resources/flags
|
||||
%{basedir}/resources/help
|
||||
%{basedir}/resources/os
|
||||
%{basedir}/resources/homepage
|
||||
%{basedir}/resources/lang
|
||||
%{basedir}/resources/counter
|
||||
%{basedir}/resources/Readme-tag.txt
|
||||
%{basedir}/resources/tag_log.php
|
||||
%{basedir}/resources/heatmap.php
|
||||
|
||||
%defattr(0755,apache,apache,-)
|
||||
%dir %{cfg1}
|
||||
%dir %{cfg2}
|
||||
|
||||
%attr(0644,apache,apache) %{cfg1}/*
|
||||
%attr(0644,apache,apache) %{cfg2}/*
|
||||
|
||||
%defattr(0755,root,root,-)
|
||||
%{cgi}
|
||||
|
||||
%defattr(0644,root,root,-)
|
||||
%{_sysconfdir}/httpd/conf/webapps.d/%{mod_conf}
|
||||
|
||||
%changelog
|
||||
* Thu May 29 2014 Laurent Domisse <domisse@w3perl.com> 1.190-1
|
||||
- Remove /resources/pays/, /resources/pays-coord
|
||||
- Add /resources/convert_jvectormap.pl and /resources/jvectormap_convert.cmd
|
||||
|
||||
* Tue Oct 29 2013 Laurent Domisse <domisse@w3perl.com> 1.8-1
|
||||
- Use = rather than == for sh shell
|
||||
|
||||
* Mon Jun 03 2013 Laurent Domisse <domisse@w3perl.com> 1.173-1
|
||||
- Remove Windows files
|
||||
|
||||
* Tue May 29 2013 Laurent Domisse <domisse@w3perl.com> 1.172-3
|
||||
- Relocation available with --relocate /var/www/w3perl = NEWPATH --relocate /var/www/cgi-bin/w3perl = NEWCGIPATH
|
||||
|
||||
* Sat May 25 2013 Laurent Domisse <domisse@w3perl.com> 1.172-2
|
||||
- Upgrade.txt file and symlink added, fix %defattr
|
||||
|
||||
* Tue May 21 2013 Laurent Domisse <domisse@w3perl.com> 1.172-1
|
||||
- Cleanup
|
||||
Reference in New Issue
Block a user