commit 49d82f1798510e5bb8d9e744b7b6e188d296653b Author: Daniel Steiner Date: Wed Feb 22 18:21:37 2017 +0100 Merged from SVN repos fedora and centos diff --git a/centos/SPECS/fio.spec b/centos/SPECS/fio.spec new file mode 100644 index 0000000..7ff2f81 --- /dev/null +++ b/centos/SPECS/fio.spec @@ -0,0 +1,76 @@ +Name: fio +Version: 2.14 +Release: 2%{?dist} +Summary: Multithreaded IO generation tool + +Group: Applications/System +License: GPLv2 +URL: http://git.kernel.dk/?p=fio.git;a=summary +Source: http://brick.kernel.dk/snaps/%{name}-%{name}-%{version}.tar.gz +Patch0: generate_plots.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libaio-devel +BuildRequires: librdmacm-devel +BuildRequires: gtk2-devel +%ifarch x86_64 +BuildRequires: librbd1-devel +%endif + +%description +fio is an I/O tool that will spawn a number of threads or processes doing +a particular type of io action as specified by the user. fio takes a +number of global parameters, each inherited by the thread unless +otherwise parameters given to them overriding that setting is given. +The typical use of fio is to write a job file matching the io load +one wants to simulate. + +%package gtkgui +Summary: GUI frontend for fio +Requires: %{name} = %{version}-%{release} +%description gtkgui +A cross-platform gtk-based GUI frontend (gfio) for fio + +%prep +%setup -q -n %{name}-%{name}-%{version} +%patch0 + +%build +%{_configure} --enable-gfio +EXTFLAGS="$RPM_OPT_FLAGS" make V=1 %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install prefix=%{_prefix} mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +%clean +[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/* +[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/* + +%files +%defattr(-,root,root,-) +%doc README REPORTING-BUGS COPYING HOWTO examples +%dir %{_datadir}/%{name} +%{_bindir}/%{name} +%{_bindir}/%{name}-* +%{_bindir}/%{name}2gnuplot +%{_bindir}/%{name}_latency2csv.py +%{_bindir}/%{name}logparser.py +%{_bindir}/%{name}logparser_hist.py +%{_bindir}/gen%{name} +%{_bindir}/%{name}_generate_plots +%{_mandir}/man1/* +%{_datadir}/%{name}/* + +%files gtkgui +%{_bindir}/g%{name} + + +%changelog +* Fri Sep 30 2016 Daniel Steiner 2.14-2 +- Problem with fio_generate_plots script fixed, see patch. + +* Fri Sep 30 2016 Daniel Steiner 2.14-1 +- New build for CentOS 7 + diff --git a/centos/SPECS/nmon.spec b/centos/SPECS/nmon.spec new file mode 100644 index 0000000..79cb3f4 --- /dev/null +++ b/centos/SPECS/nmon.spec @@ -0,0 +1,86 @@ +%define ncv 30 +%define ncn nmonchart +Name: nmon +Version: 16f +Release: 1%{?dist} +Summary: Nigel's performance Monitor for Linux + +License: GPLv3 +URL: http://nmon.sourceforge.net +Source0: https://sourceforge.net/projects/%{name}/files/lmon%{version}.c +Source1: https://sourceforge.net/projects/%{name}/files/Documentation.txt +# Manpage available from the patch archive: +# http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693 +Source2: %{name}.1 +Source3: http://sourceforge.net/projects/%{name}/files/%{ncn}%{ncv}.tar + +BuildRequires: ncurses-devel + +%description +nmon is a systems administrator, tuner, benchmark tool, which provides +information about CPU, disks, network, etc., all in one view. + +%package charts +Summary: Webpage graphs from nmon data +Requires: gawk +Requires: ksh +Provides: /usr/bin/ksh + +%description charts +nmonchart is a Korn shell script for AIX or Linux to convert nmon collected +files to a webpage (.html) including Google Chart and JavaScript to display +the top 53+ AIX and Linux Performance Graphs and configuration details. + +%prep +%setup -T -c -n %{name} +sed -e "s/\r//" %{SOURCE1} > Documentation.txt +touch -c -r %{SOURCE1} Documentation.txt +cp %{SOURCE0} . + +%build +%ifarch ppc %{power64} + %{__cc} %{optflags} -D JFS -D GETUSER \ + -D LARGEMEM -lncurses -lm lmon%{version}.c -D POWER -o %{name} +%else + %{__cc} %{optflags} -D JFS -D GETUSER \ + -D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name} +%endif + +%install +install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} +install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1 + +# extract and install nmonchart: +mkdir %{ncn}%{ncv} +pushd %{ncn}%{ncv} +tar xf %{S:3} +install -D -p -m 0755 %{ncn} %{buildroot}%{_bindir}/%{ncn} +install -D -p -m 0644 README %{buildroot}%{_docdir}/%{ncn}/README +install -D -p -m 0644 nmonchart_cron %{buildroot}%{_docdir}/%{ncn}/nmonchart_cron +install -D -p -m 0644 sampleC.html %{buildroot}%{_docdir}/%{ncn}/sampleC.html +install -D -p -m 0644 sampleC.nmon %{buildroot}%{_docdir}/%{ncn}/sampleC.nmon +popd + +%clean +[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/* +[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/* + +%files +%doc Documentation.txt +%{_mandir}/man1/%{name}.1.* +%{_bindir}/%{name} + +%files charts +%{_docdir}/%{ncn}/README +%{_docdir}/%{ncn}/nmonchart_cron +%{_docdir}/%{ncn}/sampleC.html +%{_docdir}/%{ncn}/sampleC.nmon +%{_bindir}/%{ncn} + +%changelog +* Fri Sep 30 2016 Daniel Steiner - 16f-1 +- Update to latest version + +* Fri Sep 30 2016 Daniel Steiner - 16d-2 +- First build for CentOS 7 + diff --git a/centos/SPECS/perl-Monitoring-Plugin.spec b/centos/SPECS/perl-Monitoring-Plugin.spec new file mode 100644 index 0000000..3a533ec --- /dev/null +++ b/centos/SPECS/perl-Monitoring-Plugin.spec @@ -0,0 +1,82 @@ +# +# 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 +Release: 1%{?dist} +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-macros +Source: %cpan_name-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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 +* Fri Mar 25 2016 +- New initial package, but is forked of perl-Nagios-Plugin. diff --git a/centos/SPECS/pydf.spec b/centos/SPECS/pydf.spec new file mode 100644 index 0000000..0d7095e --- /dev/null +++ b/centos/SPECS/pydf.spec @@ -0,0 +1,44 @@ +Summary: Fully colorized df clone written in python +Name: pydf +Version: 12 +Release: 01.tvd%{?dist} +License: Public Domain +Group: Applications/System +Source: https://pypi.python.org/packages/source/p/pydf/%{name}-%{version}.tar.gz +URL: https://pypi.python.org/pypi/pydf +Requires: python >= 2.3 +BuildArch: noarch + +%description +pydf displays the amount of used and available space on your file systems, +just like df, but in colors. The output format is completely customizable. + +%prep +%setup -q + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1} + +install -p %{name} $RPM_BUILD_ROOT%{_bindir} +install -p %{name}rc $RPM_BUILD_ROOT%{_sysconfdir} +install -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 README + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.gz INSTALL COPYING +%attr(755,root,root) %{_bindir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}rc + +%{_mandir}/man1/%{name}.1.gz + +%changelog +* Fri Mar 25 2016 Daniel Steiner +- Initial package for CentOS 7. diff --git a/fedora/SPECS/clsync.spec b/fedora/SPECS/clsync.spec new file mode 100644 index 0000000..4a4ed81 --- /dev/null +++ b/fedora/SPECS/clsync.spec @@ -0,0 +1,103 @@ +# +# author: Enrique Martinez +# license: GPL-3+ +# +Summary: Live sync tool based on inotify +Name: clsync +Version: 0.4.1 +Release: 1%{?dist} +License: GPL-3+ +Group: Applications/System +URL: https://github.com/xaionaro/clsync +Source0: clsync-%{version}.tar.gz +Source1: clsync.init +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: glib2-devel +BuildRequires: autoconf + +%description +live sync tool based on inotify, written in GNU C +Clsync recursively watches for source directory and executes external +program to sync the changes. Clsync is adapted to use together with rsync. +This utility is much more lightweight than competitors and supports such +features as separate queue for big files, regex file filter, +multi-threading. + +%package devel +Summary: Development Files for clsync +Group: Applications/System +Requires: clsync = %{version}-%{release} + +%description devel +live sync tool based on inotify, written in GNU C +Clsync recursively watches for source directory and executes external +program to sync the changes. Clsync is adapted to use together with rsync. +This utility is much more lightweight than competitors and supports such +features as separate queue for big files, regex file filter, +multi-threading. + +%prep +%setup + +%build +autoreconf -if +%configure +make + +%install +make install DESTDIR=%{buildroot} +install -D -p -m 0750 %{SOURCE1} %{buildroot}/etc/init.d/clsync +mkdir -p %{buildroot}/etc/clsync/rules +mkdir -p %{buildroot}/var/tmp/clsync/from +mkdir -p %{buildroot}/var/tmp/clsync/to +mkdir -p %{buildroot}/var/run/clsync + +cat > %{buildroot}/etc/clsync/clsync.conf < %{buildroot}/etc/clsync/rules/default < +- First build for Fedora diff --git a/fedora/SPECS/collectd.spec b/fedora/SPECS/collectd.spec new file mode 100644 index 0000000..50c9411 --- /dev/null +++ b/fedora/SPECS/collectd.spec @@ -0,0 +1,1126 @@ +%global _hardened_build 1 +%global __provides_exclude_from ^%{_libdir}/collectd/.*\\.so$ + +Summary: Statistics collection daemon for filling RRD files +Name: collectd +Version: 5.4.0 +Release: 1%{?dist} +License: GPLv2 +Group: System Environment/Daemons +URL: http://collectd.org/ + +Source: http://collectd.org/files/%{name}-%{version}.tar.bz2 +Source1: collectd-httpd.conf +Source2: collection.conf +Source3: collectd.service +Source91: apache.conf +Source92: email.conf +Source93: mysql.conf +Source94: nginx.conf +Source95: sensors.conf +Source96: snmp.conf +Source97: rrdtool.conf + +Patch0: %{name}-include-collectd.d.patch + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::Embed) +BuildRequires: python-devel +BuildRequires: libgcrypt-devel +BuildRequires: autoconf, automake +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +collectd is a small daemon written in C for performance. It reads various +system statistics and updates RRD files, creating them if necessary. +Since the daemon doesn't need to startup every time it wants to update the +files it's very fast and easy on the system. Also, the statistics are very +fine grained since the files are updated every 10 seconds. + + +%package amqp +Summary: AMQP plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: librabbitmq-devel +%description amqp +This plugin can be used to communicate with other instances of collectd +or third party applications using an AMQP message broker. + + +%package apache +Summary: Apache plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +%description apache +This plugin collects data provided by Apache's 'mod_status'. + + +%package ascent +Summary: Ascent plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: curl-devel +BuildRequires: libxml2-devel +%description ascent +This plugin collects data about an Ascent server, +a free server for the "World of Warcraft" game. + + +%package bind +Summary: Bind plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: curl-devel +BuildRequires: libxml2-devel +%description bind +This plugin retrieves statistics from the BIND dns server. + + +%package curl +Summary: Curl plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: curl-devel +%description curl +This plugin reads webpages with curl + + +%package curl_json +Summary: Curl JSON plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: curl-devel +BuildRequires: yajl-devel +%description curl_json +This plugin retrieves JSON data via curl. + + +%package curl_xml +Summary: Curl XML plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: curl-devel +BuildRequires: libxml2-devel +%description curl_xml +This plugin retrieves XML data via curl. + + +%package dbi +Summary: DBI plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libdbi-devel +%description dbi +This plugin uses the dbi library to connect to various databases, +execute SQL statements and read back the results. + + +%package dns +Summary: DNS traffic analysis plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libpcap-devel +%description dns +This plugin collects DNS traffic data. + + +%package email +Summary: Email plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release}, spamassassin +%description email +This plugin collects data provided by spamassassin. + + +%package generic-jmx +Summary: Generic JMX plugin for collectd +Group: System Environment/Daemons +Requires: collectd-java = %{version}-%{release} +%description generic-jmx +This plugin collects data provided by JMX. + + +%package gmond +Summary: Gmond plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release}, spamassassin +BuildRequires: ganglia-devel +%description gmond +This plugin receives multicast traffic sent by gmond, +the statistics collection daemon of Ganglia. + + +%package ipmi +Summary: IPMI plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: OpenIPMI-devel +%description ipmi +This plugin for collectd provides IPMI support. + + +%package iptables +Summary: Iptables plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: iptables-devel +%description iptables +This plugin collects data from iptables counters. + + +%package ipvs +Summary: IPVS plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +%description ipvs +This plugin collects data from IPVS. + + +%package java +Summary: Java bindings for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: java-devel +BuildRequires: jpackage-utils +%description java +These are the Java bindings for collectd. + + +%package lvm +Summary: LVM plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: lvm2-devel +%description lvm +This plugin collects information from lvm + + +%if 0%{?fedora} <= 18 +%package memcachec +Summary: Memcachec plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libmemcached-devel +%description memcachec +This plugin connects to a memcached server, queries one or more +given pages and parses the returned data according to user specification. +%endif + + +%package modbus +Summary: Modbus plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libmodbus-devel +%description modbus +This plugin connects to a Modbus "slave" via Modbus/TCP +and reads register values. + + +%package mysql +Summary: MySQL plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: mysql-devel +%description mysql +MySQL querying plugin. This plugin provides data of issued commands, +called handlers and database traffic. + + +%package netlink +Summary: Netlink plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: iproute-static, libmnl-devel +%description netlink +This plugin uses a netlink socket to query the Linux kernel +about statistics of various interface and routing aspects. + + +%package nginx +Summary: Nginx plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +%description nginx +This plugin collects data provided by Nginx. + + +%package notify_desktop +Summary: Notify desktop plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libnotify-devel +%description notify_desktop +This plugin sends a desktop notification to a notification daemon, +as defined in the Desktop Notification Specification. + + +%package notify_email +Summary: Notify email plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libesmtp-devel +%description notify_email +This plugin uses the ESMTP library to send +notifications to a configured email address. + + +%ifnarch s390 s390x +%package nut +Summary: Network UPS Tools plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: nut-devel +%description nut +This plugin for collectd provides Network UPS Tools support. +%endif + + +%package -n perl-Collectd +Summary: Perl bindings for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description -n perl-Collectd +This package contains the Perl bindings and plugin for collectd. + + +%package pinba +Summary: Pinba plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: protobuf-c-devel +%description pinba +This plugin receives profiling information from Pinba, +an extension for the PHP interpreter. + + +%package ping +Summary: Ping plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: liboping-devel +%description ping +This plugin for collectd provides network latency statistics. + + +%package postgresql +Summary: PostgreSQL plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: postgresql-devel +%description postgresql +PostgreSQL querying plugin. This plugins provides data of issued commands, +called handlers and database traffic. + + +%package rrdcached +Summary: RRDCacheD plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: rrdtool-devel +%description rrdcached +This plugin uses the RRDtool accelerator daemon, rrdcached(1), +to store values to RRD files in an efficient manner. + + +%package rrdtool +Summary: RRDTool plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: rrdtool-devel +%description rrdtool +This plugin for collectd provides rrdtool support. + + +%ifnarch ppc ppc64 sparc sparc64 +%package sensors +Summary: Libsensors module for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release}, lm_sensors +BuildRequires: lm_sensors-devel +%description sensors +This plugin for collectd provides querying of sensors supported by +lm_sensors. +%endif + +%package snmp +Summary: SNMP module for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release}, net-snmp +BuildRequires: net-snmp-devel +%description snmp +This plugin for collectd provides querying of net-snmp. + + +%package varnish +Summary: Varnish plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: varnish-libs-devel +%description varnish +This plugin collects information about Varnish, an HTTP accelerator. + + +%ifnarch ppc ppc64 sparc sparc64 +%package virt +Summary: Libvirt plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: libvirt-devel +BuildRequires: libxml2-devel +%description virt +This plugin collects information from virtualized guests. +%endif + + +%package web +Summary: Contrib web interface to viewing rrd files +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +Requires: collectd-rrdtool = %{version}-%{release} +Requires: perl-HTML-Parser, perl-Regexp-Common, rrdtool-perl, httpd +%description web +This package will allow for a simple web interface to view rrd files created by +collectd. + + +%package write_riemann +Summary: Riemann output plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: protobuf-c-devel +%description write_riemann +This plugin can send data to Riemann. + + +%package xmms +Summary: XMMS plugin for collectd +Group: System Environment/Daemons +Requires: collectd = %{version}-%{release} +BuildRequires: xmms-devel +%description xmms +This is a collectd plugin for the XMMS music player. +It graphs the bit-rate and sampling rate as you play songs. + + +%prep +%setup -q +%patch0 -p1 +# update for aarch64 +autoreconf --force + +sed -i.orig -e 's|-Werror||g' Makefile.in */Makefile.in + + +%build +%configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL'" \ + --enable-all-plugins \ + --disable-static \ + --disable-apple_sensors \ + --disable-aquaero \ + --disable-lpar \ + --disable-mic \ +%if 0%{?fedora} >= 19 + --disable-memcachec \ +%endif + --disable-netapp \ +%ifarch s390 s390x + --disable-nut \ +%endif + --disable-onewire \ + --disable-oracle \ + --disable-pf \ + --disable-redis \ + --disable-routeros \ +%ifarch ppc ppc64 sparc sparc64 + --disable-sensors \ +%endif + --disable-sigrok \ + --disable-tape \ + --disable-tokyotyrant \ + --disable-write_mongodb \ + --disable-write_redis \ + --disable-zfs_arc \ + --with-libiptc \ + --with-java=%{java_home}/ \ + --with-python \ + --with-perl-bindings=INSTALLDIRS=vendor + +%{__make} %{?_smp_mflags} + + +%install +%{__rm} -rf contrib/SpamAssassin +%{__make} install DESTDIR="%{buildroot}" + +%{__install} -Dp -m0644 src/collectd.conf %{buildroot}%{_sysconfdir}/collectd.conf +%{__install} -Dp -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/collectd.service +%{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/collectd/rrd +%{__install} -d -m0755 %{buildroot}/%{_datadir}/collectd/collection3/ +%{__install} -d -m0755 %{buildroot}/%{_sysconfdir}/httpd/conf.d/ + +find contrib/ -type f -exec %{__chmod} a-x {} \; + +# Remove Perl hidden .packlist files. +find %{buildroot} -name .packlist -exec rm {} \; +# Remove Perl temporary file perllocal.pod +find %{buildroot} -name perllocal.pod -exec rm {} \; + +# copy web interface +cp -ad contrib/collection3/* %{buildroot}/%{_datadir}/collectd/collection3/ +rm -f %{buildroot}/%{_datadir}/collectd/collection3/etc/collection.conf +cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/collectd.conf +cp %{SOURCE2} %{buildroot}%{_sysconfdir}/collection.conf +ln -s %{_sysconfdir}/collection.conf %{buildroot}/%{_datadir}/collectd/collection3/etc/collection.conf +chmod +x %{buildroot}/%{_datadir}/collectd/collection3/bin/*.cgi + +# Move the Perl examples to a separate directory. +mkdir perl-examples +find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \; + +# Move config contribs +mkdir -p %{buildroot}%{_sysconfdir}/collectd.d/ +cp %{SOURCE91} %{buildroot}%{_sysconfdir}/collectd.d/apache.conf +cp %{SOURCE92} %{buildroot}%{_sysconfdir}/collectd.d/email.conf +cp %{SOURCE93} %{buildroot}%{_sysconfdir}/collectd.d/mysql.conf +cp %{SOURCE94} %{buildroot}%{_sysconfdir}/collectd.d/nginx.conf +cp %{SOURCE95} %{buildroot}%{_sysconfdir}/collectd.d/sensors.conf +cp %{SOURCE96} %{buildroot}%{_sysconfdir}/collectd.d/snmp.conf +cp %{SOURCE97} %{buildroot}%{_sysconfdir}/collectd.d/rrdtool.conf + +# configs for subpackaged plugins +%ifnarch s390 s390x +for p in dns ipmi libvirt nut perl ping postgresql +%else +for p in dns ipmi libvirt perl ping postgresql +%endif +do +%{__cat} > %{buildroot}%{_sysconfdir}/collectd.d/$p.conf < 5.4.0-1 +- Update to 5.4.0 + http://mailman.verplant.org/pipermail/collectd/2013-August/005906.html +- Enable new cgroups, statsd and lvm plugins + +* Sat Aug 03 2013 Fedora Release Engineering - 5.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 5.3.0-4 +- Perl 5.18 rebuild + +* Mon Jun 03 2013 Kevin Fenzi 5.3.0-3 +- Rebuild for new ganglia + +* Mon May 27 2013 Ruben Kerkhof 5.3.0-2 +- BuildRequire static version of iproute (#967214) + +* Sat Apr 27 2013 Ruben Kerkhof 5.3.0-1 +- update to 5.3.0 + http://mailman.verplant.org/pipermail/collectd/2013-April/005749.html +- enable all plugins we can enable +- filter plugins from Provides +- use new systemd macros (#850062) +- modernize specfile + +* Mon Apr 22 2013 Alan Pevec 5.2.2-1 +- update to 5.2.2 + http://mailman.verplant.org/pipermail/collectd/2013-April/005749.html +- build with PIE flags rhbz#954322 + +* Mon Feb 04 2013 Alan Pevec 5.2.1-1 +- update to 5.2.1 + http://mailman.verplant.org/pipermail/collectd/2013-January/005577.html + +* Mon Nov 26 2012 Alan Pevec 5.2.0-1 +- update to 5.2.0 from Steve Traylen rhbz#877721 + +* Wed Nov 21 2012 Alan Pevec 5.1.1-1 +- update to 5.1.1 +- spec cleanups from Ruben Kerkhof +- fix postgresql_default.conf location rhbz#681615 +- fix broken configuration for httpd 2.4 rhbz#871385 + +* Mon Nov 19 2012 Alan Pevec 5.0.5-1 +- new upstream version 5.0.5 + http://mailman.verplant.org/pipermail/collectd/2012-November/005465.html + +* Mon Sep 17 2012 Alan Pevec 5.0.4-1 +- New upstream release, version bump to 5 (#743894) from Andrew Elwell + +* Wed Jul 18 2012 Fedora Release Engineering - 4.10.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 4.10.7-2 +- Perl 5.16 rebuild + +* Tue Apr 03 2012 Alan Pevec 4.10.7-1 +- new upstream release 4.10.7 + http://mailman.verplant.org/pipermail/collectd/2012-April/005045.html + +* Wed Feb 29 2012 Alan Pevec 4.10.6-1 +- new upstream release 4.10.6 + http://mailman.verplant.org/pipermail/collectd/2012-February/004932.html + +* Thu Jan 12 2012 Fedora Release Engineering - 4.10.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 28 2011 Alan Pevec 4.10.4-1 +- new upstream version 4.10.4 + http://mailman.verplant.org/pipermail/collectd/2011-October/004777.html +- collectd-web config file DataDir value wrong rhbz#719809 +- Python plugin doesn't work rhbz#739593 +- Add systemd service file. (thanks Paul P. Komkoff Jr) rhbz#754460 + +* Fri Jul 29 2011 Kevin Fenzi - 4.10.3-8 +- Rebuild for new snmp again. + +* Thu Jul 21 2011 Petr Sabata - 4.10.3-7 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata - 4.10.3-6 +- Perl mass rebuild + +* Fri Jul 08 2011 Kevin Fenzi - 4.10.3-5 +- Rebuild for new snmp + +* Thu Jun 16 2011 Marcela Mašláňová - 4.10.3-4 +- Perl mass rebuild + +* Tue May 03 2011 Dan Horák - 4.10.3-3 +- fix build on s390(x) + +* Tue Apr 19 2011 Alan Pevec 4.10.3-2 +- re-enable nut plugin rhbz#465729 rhbz#691380 + +* Tue Mar 29 2011 Alan Pevec 4.10.3-1 +- new upstream version 4.10.3 + http://collectd.org/news.shtml#news87 +- disable nut 2.6 which fails collectd check: + libupsclient . . . . no (symbol upscli_connect not found) + +* Wed Mar 23 2011 Dan Horák - 4.10.2-4 +- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) + +* Tue Feb 08 2011 Fedora Release Engineering - 4.10.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 07 2011 Dan Horák 4.10.2-2 +- no nut on s390(x) + +* Thu Dec 16 2010 Alan Pevec 4.10.2-1 +- New upstream version 4.10.2 +- http://collectd.org/news.shtml#news86 +- explicitly disable/enable all plugins, fixes FTBFS bz#660936 + +* Thu Nov 04 2010 Alan Pevec 4.10.1-1 +- New upstream version 4.10.1 + http://collectd.org/news.shtml#news85 + +* Sat Oct 30 2010 Richard W.M. Jones 4.10.0-3 +- Bump and rebuild for updated libnetsnmp.so. + +* Wed Sep 29 2010 jkeating - 4.10.0-2 +- Rebuilt for gcc bug 634757 + +* Sun Sep 19 2010 Robert Scheck 4.10.0-1 +- New upstream version 4.10.0 (thanks to Mike McGrath) + +* Tue Jun 08 2010 Alan Pevec 4.9.2-1 +- New upstream version 4.9.2 + http://collectd.org/news.shtml#news83 + +* Thu Apr 29 2010 Marcela Maslanova - 4.9.1-3 +- Mass rebuild with perl-5.12.0 + +* Fri Mar 26 2010 Alan Pevec 4.9.1-2 +- enable ping plugin bz#541744 + +* Mon Mar 08 2010 Lubomir Rintel 4.9.1-1 +- New upstream version 4.9.1 + http://collectd.org/news.shtml#news81 + +* Tue Feb 16 2010 Alan Pevec 4.8.3-1 +- New upstream version 4.8.3 + http://collectd.org/news.shtml#news81 +- FTBFS bz#564943 - system libiptc is not usable and owniptc fails to compile: + add a patch from upstream iptables.git to fix owniptc compilation + +* Fri Dec 4 2009 Stepan Kasal - 4.8.1-3 +- rebuild against perl 5.10.1 + +* Fri Nov 27 2009 Alan Pevec 4.8.1-2 +- use Fedora libiptc, owniptc in collectd sources fails to compile + +* Wed Nov 25 2009 Alan Pevec 4.8.1-1 +- update to 4.8.1 (Florian La Roche) bz# 516276 +- disable ping plugin until liboping is packaged bz# 541744 + +* Fri Sep 11 2009 Tom "spot" Callaway 4.6.5-1 +- update to 4.6.5 +- disable ppc/ppc64 due to compile error + +* Wed Sep 02 2009 Alan Pevec 4.6.4-1 +- fix condrestart: on upgrade collectd is not restarted, bz# 516273 +- collectd does not re-connect to libvirtd, bz# 480997 +- fix unpackaged files https://bugzilla.redhat.com/show_bug.cgi?id=516276#c4 +- New upstream version 4.6.4 + http://collectd.org/news.shtml#news69 + +* Fri Aug 21 2009 Tomas Mraz - 4.6.2-5 +- rebuilt with new openssl + +* Thu Aug 6 2009 Richard W.M. Jones - 4.6.2-4 +- Force rebuild to test FTBFS issue. +- lib/collectd/types.db seems to have moved to share/collectd/types.db + +* Fri Jul 24 2009 Fedora Release Engineering - 4.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed May 20 2009 Alan Pevec 4.6.2-1 +- New upstream version 4.6.2 + http://collectd.org/news.shtml#news64 + +* Tue Mar 03 2009 Alan Pevec 4.5.3-2 +- patch for strict-aliasing issue in liboping.c + +* Mon Mar 02 2009 Alan Pevec 4.5.3-1 +- New upstream version 4.5.3 +- fixes collectd is built without iptables plugin, bz# 479208 +- list all expected plugins explicitly to avoid such bugs + +* Tue Feb 24 2009 Fedora Release Engineering - 4.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Jan 23 2009 Richard W.M. Jones - 4.5.1-3 +- Rebuild against new mysql client. + +* Sun Dec 07 2008 Alan Pevec 4.5.1-2.1 +- fix subpackages, bz# 475093 + +* Sun Nov 30 2008 Alan Pevec 4.5.1-2 +- workaround for https://bugzilla.redhat.com/show_bug.cgi?id=468067 + +* Wed Oct 22 2008 Alan Pevec 4.5.1-1 +- New upstream version 4.5.1, bz# 470943 + http://collectd.org/news.shtml#news59 +- enable Network UPS Tools (nut) plugin, bz# 465729 +- enable postgresql plugin +- spec cleanup, bz# 473641 + +* Fri Aug 01 2008 Alan Pevec 4.4.2-1 +- New upstream version 4.4.2. + +* Thu Jul 03 2008 Lubomir Rintel 4.4.1-4 +- Fix a typo introduced by previous change that prevented building in el5 + +* Thu Jul 03 2008 Lubomir Rintel 4.4.1-3 +- Make this compile with older perl package +- Turn dependencies on packages to dependencies on Perl modules +- Add default attributes for files + +* Thu Jun 12 2008 Alan Pevec 4.4.1-2 +- Split rrdtool into a subpackage (Chris Lalancette) +- cleanup subpackages, split dns plugin, enable ipmi +- include /etc/collectd.d (bz#443942) + +* Mon Jun 09 2008 Alan Pevec 4.4.1-1 +- New upstream version 4.4.1. +- plugin changes: reenable iptables, disable ascent + +* Tue May 27 2008 Alan Pevec 4.4.0-2 +- disable iptables/libiptc + +* Mon May 26 2008 Alan Pevec 4.4.0-1 +- New upstream version 4.4.0. + +* Wed Apr 23 2008 Richard W.M. Jones - 4.3.2-9 +- Added {?dist} to release number (thanks Alan Pevec). + +* Wed Apr 23 2008 Richard W.M. Jones - 4.3.2-8 +- Bump release number so we can tag this in Rawhide. + +* Thu Apr 17 2008 Richard W.M. Jones - 4.3.2-6 +- Exclude perl.so from the main package. + +* Thu Apr 17 2008 Richard W.M. Jones - 4.3.2-5 +- Put the perl bindings and plugin into a separate perl-Collectd + package. Note AFAICT from the manpage, the plugin and Collectd::* + perl modules must all be packaged together. + +* Wed Apr 16 2008 Richard W.M. Jones - 4.3.2-4 +- Remove -devel subpackage. +- Add subpackages for apache, email, mysql, nginx, sensors, + snmp (thanks Richard Shade). +- Add subpackages for perl, libvirt. + +* Tue Apr 15 2008 Richard W.M. Jones - 4.3.2-2 +- Install Perl bindings in vendor dir not site dir. + +* Tue Apr 15 2008 Richard W.M. Jones - 4.3.2-1 +- New upstream version 4.3.2. +- Create a -devel subpackage for development stuff, examples, etc. +- Use .bz2 package instead of .gz. +- Remove fix-hostname patch, now upstream. +- Don't mark collectd init script as config. +- Enable MySQL, sensors, email, apache, Perl, unixsock support. +- Don't remove example Perl scripts. +- Package types.db(5) manpage. +- Fix defattr. +- Build in koji to find the full build-requires list. + +* Mon Apr 14 2008 Richard W.M. Jones - 4.2.3.100.g79b0797-2 +- Prepare for Fedora package review: +- Clarify license is GPLv2 (only). +- Setup should be quiet. +- Spelling mistake in original description fixed. +- Don't include NEWS in doc - it's an empty file. +- Convert some other doc files to UTF-8. +- config(noreplace) on init file. + +* Thu Jan 10 2008 Chris Lalancette - 4.2.3.100.g79b0797.1.ovirt +- Update to git version 79b0797 +- Remove *.pm files so we don't get a bogus dependency +- Re-enable rrdtool; we will need it on the WUI side anyway + +* Mon Oct 29 2007 Dag Wieers - 4.2.0-1 - 5946+/dag +- Updated to release 4.2.0. + +* Mon Oct 29 2007 Dag Wieers - 3.11.5-1 +- Initial package. (using DAR) diff --git a/fedora/SPECS/dcadec.spec b/fedora/SPECS/dcadec.spec new file mode 100644 index 0000000..08c3f7a --- /dev/null +++ b/fedora/SPECS/dcadec.spec @@ -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 - 0.2.0-1 +- New upstream version + +* Sun Dec 06 2015 Michael Cronenworth - 0.1.0-1 +- Initial package + diff --git a/fedora/SPECS/hstr.spec b/fedora/SPECS/hstr.spec new file mode 100644 index 0000000..ddc9485 --- /dev/null +++ b/fedora/SPECS/hstr.spec @@ -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 +- Initial setup. diff --git a/fedora/SPECS/icinga-web.spec b/fedora/SPECS/icinga-web.spec new file mode 100644 index 0000000..b7b979a --- /dev/null +++ b/fedora/SPECS/icinga-web.spec @@ -0,0 +1,318 @@ +# $Id$ +# Authority: The icinga devel team +# Upstream: The icinga devel team +# ExcludeDist: el4 el3 + +%define revision 1 + +%define logdir %{_localstatedir}/log/%{name} +%define cachedir %{_localstatedir}/cache/%{name} +%define reportingcachedir %{_localstatedir}/cache/%{name}/reporting + +%define phpname php + +# el5 requires newer php53 rather than php (5.1) +%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" +%define phpname php53 +%endif + +%if "%{_vendor}" == "suse" +%define apacheconfdir %{_sysconfdir}/apache2/conf.d +%define apacheuser wwwrun +%define apachegroup www +%define extcmdfile %{_localstatedir}/icinga/rw/icinga.cmd +%endif +%if "%{_vendor}" == "redhat" +%define apacheconfdir %{_sysconfdir}/httpd/conf.d +%define apacheuser apache +%define apachegroup apache +%define extcmdfile %{_localstatedir}/spool/icinga/cmd/icinga.cmd +%endif + +Summary: Open Source host, service and network monitoring Web UI +Name: icinga-web +Version: 1.13.0 +Release: %{revision}%{?dist} +License: GPLv3 +Group: Applications/System +URL: http://www.icinga.org +BuildArch: noarch + +%if "%{_vendor}" == "suse" +AutoReqProv: Off +%endif + +Source0: https://github.com/Icinga/icinga-web/releases/download/v%{version}/icinga-web-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: make +BuildRequires: %{phpname} >= 5.2.3 +BuildRequires: %{phpname}-devel >= 5.2.3 +BuildRequires: %{phpname}-gd +BuildRequires: %{phpname}-ldap +BuildRequires: %{phpname}-pdo + +%if "%{_vendor}" == "redhat" +BuildRequires: %{phpname}-xml +BuildRequires: php-pear +%endif +%if "%{_vendor}" == "suse" +BuildRequires: %{phpname}-json +BuildRequires: %{phpname}-sockets +BuildRequires: %{phpname}-xsl +BuildRequires: %{phpname}-dom +BuildRequires: %{phpname}-pear +%endif + +Requires: pcre >= 7.6 +Requires: %{phpname} >= 5.2.3 +Requires: %{phpname}-gd +Requires: %{phpname}-ldap +Requires: %{phpname}-pdo +%if "%{_vendor}" == "redhat" +Requires: %{phpname}-common +Requires: %{phpname}-xml +Requires: php-pear +%endif +%if "%{_vendor}" == "suse" +Requires: %{phpname}-pear +Requires: %{phpname}-xsl +Requires: %{phpname}-dom +Requires: %{phpname}-tokenizer +Requires: %{phpname}-gettext +Requires: %{phpname}-ctype +Requires: %{phpname}-json +Requires: %{phpname}-pear +Requires: mod_php_any +%endif + + +%description +Icinga Web for Icinga Core, uses Icinga IDOUtils DB as data source. + +%package mysql +Summary: Database config for mysql +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Requires: %{phpname}-mysql +Conflicts: %{name}-pgsql + +%description mysql +Database config and requirements for mysql for icinga-web + +%package pgsql +Summary: Database config for pgsql +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Requires: %{phpname}-pgsql +Conflicts: %{name}-mysql + +%description pgsql +Database config and requirements for pgsql for icinga-web + +%package module-pnp +Summary: PNP Integration module for Icinga Web +Group: Applications/System +Requires: pnp4nagios +Requires: %{name} = %{version}-%{release} + +%description module-pnp +PNP Integration module for Icinga Web + +%package scheduler +Summary: Scheduler for Icinga Web +Group: Applications/System +Requires: %{name} = %{version}-%{release} +%if "%{_vendor}" == "suse" +Requires: cron +%endif +%if "%{_vendor}" == "redhat" +%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" +Requires: vixie-cron +%else +Requires: cronie +%endif +%endif + +%description scheduler +Scheduler for Icinga Web + + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure \ + --prefix="%{_datadir}/%{name}" \ + --datadir="%{_datadir}/%{name}" \ + --datarootdir="%{_datadir}/%{name}" \ + --sysconfdir="%{_sysconfdir}/%{name}" \ + --with-conf-dir='%{_sysconfdir}/%{name}/conf.d' \ + --with-web-user='%{apacheuser}' \ + --with-web-group='%{apachegroup}' \ + --with-api-cmd-file='%{extcmdfile}' \ + --with-log-dir='%{logdir}' \ + --with-cache-dir='%{cachedir}' \ + --with-reporting-tmp-dir='%{reportingcachedir}' \ + --with-icinga-bin='%{_bindir}/icinga' \ + --with-icinga-cfg='%{_sysconfdir}/icinga/icinga.cfg' \ + --with-icinga-objects-dir='%{_sysconfdir}/icinga/objects' \ + --with-clearcache-path='%{_bindir}' \ + --with-web-apache-path=%{apacheconfdir} + +%install +%{__rm} -rf %{buildroot} +%{__mkdir} -p %{buildroot}/%{apacheconfdir} +%{__mkdir} -p %{buildroot}/%{_bindir} +%{__make} install \ + install-apache-config \ + DESTDIR="%{buildroot}" \ + INSTALL_OPTS="" \ + COMMAND_OPTS="" \ + INSTALL_OPTS_WEB="" \ + INSTALL_OPTS_CACHE="" \ + INIT_OPTS="" + +# install scheduler +%{__mkdir} -p %{buildroot}%{_sysconfdir}/cron.d/ +sed -e "s#%%USER%%#icinga#;s#%%PATH%%#%{_datadir}/%{name}#" etc/scheduler/icingaCron > %{buildroot}%{_sysconfdir}/cron.d/icingaCron +%{__mkdir} -p %{buildroot}%{_localstatedir}/log/icingaCron + +# we only want clearcache.sh prefixed in {_bindir}, generated from configure +%{__mv} %{buildroot}%{_bindir}/clearcache.sh %{buildroot}%{_bindir}/%{name}-clearcache + +# wipe the rest of bin/, we don't need prepackage stuff in installed envs +%{__rm} -rf %{buildroot}%{_datadir}/%{name}/bin + +# place the pnp templates for -module-pnp +%{__cp} contrib/PNP_Integration/templateExtensions/* %{buildroot}%{_datadir}/%{name}/app/modules/Cronks/data/xml/extensions/ + +%pre +# Add apacheuser in the icingacmd group +# If the group exists, add the apacheuser in the icingacmd group. +# It is not neccessary that icinga-web is installed on the same system as +# icinga and only on systems with icinga installed the icingacmd +# group exists. In all other cases the user used for ssh access has +# to be added to the icingacmd group on the remote icinga server. +getent group icingacmd > /dev/null + +if [ $? -eq 0 ]; then +%if "%{_vendor}" == "suse" +%{_sbindir}/usermod -G icingacmd %{apacheuser} +%else +%{_sbindir}/usermod -a -G icingacmd %{apacheuser} +%endif +fi + +# uncomment if building from git +# %{__rm} -rf %{buildroot}%{_datadir}/icinga-web/.git + +%preun +%if "%{_vendor}" == "suse" + %restart_on_update apache2 +%endif + +%post +# clean config cache, e.g. after upgrading +%{name}-clearcache + +%if "%{_vendor}" == "suse" + a2enmod rewrite + %restart_on_update apache2 +%endif + +%postun +%if "%{_vendor}" == "suse" + %restart_on_update apache2 +%endif + +%post pgsql +### change databases.xml to match pgsql config +# check if this is an upgrade +if [ $1 -eq 2 ] +then + %{__cp} %{_sysconfdir}/%{name}/conf.d/databases.xml %{_sysconfdir}/%{name}/conf.d/databases.xml.pgsql + %{__perl} -pi -e ' + s|db_servertype=mysql|db_servertype=pgsql|; + s|db_port=3306|db_port=5432|; + ' %{_sysconfdir}/%{name}/conf.d/databases.xml.pgsql + %logmsg "Warning: upgrade, pgsql config written to databases.xml.pgsql" +fi +# install +if [ $1 -eq 1 ] +then + %{__perl} -pi -e ' + s|db_servertype=mysql|db_servertype=pgsql|; + s|db_port=3306|db_port=5432|; + ' %{_sysconfdir}/%{name}/conf.d/databases.xml +fi + +%post module-pnp +# clean cronk template cache +%{name}-clearcache + +%postun module-pnp +if [ -f %{_sbindir}/%{name}-clearcache ]; then + %{name}-clearcache +fi + +%clean +%{__rm} -rf %{buildroot} + +%files +# main dirs +%defattr(-,root,root) +%if "%{_vendor}" == "redhat" +%doc etc/schema doc/README.RHEL doc/AUTHORS doc/CHANGELOG-1.13 doc/LICENSE +%endif +%if "%{_vendor}" == "suse" +%doc etc/schema doc/README.SUSE doc/AUTHORS doc/CHANGELOG-1.13 doc/LICENSE +%endif +# packaged by subpackages +%exclude %{_datadir}/%{name}/app/modules/Cronks/data/xml/extensions +%exclude %{_sysconfdir}/%{name}/conf.d/databases.xml +%{_datadir}/%{name}/app +%{_datadir}/%{name}/doc +%{_datadir}/%{name}/etc +%{_datadir}/%{name}/lib +%{_datadir}/%{name}/pub +# configs +%defattr(-,root,root) +%config(noreplace) %attr(-,root,root) %{apacheconfdir}/icinga-web.conf +%dir %{_sysconfdir}/%{name} +%dir %{_sysconfdir}/%{name}/conf.d +%config(noreplace) %attr(644,-,-) %{_sysconfdir}/%{name}/conf.d/* +# logs+cache +%attr(2775,%{apacheuser},%{apachegroup}) %dir %{logdir} +%attr(-,%{apacheuser},%{apachegroup}) %{cachedir} +%attr(-,%{apacheuser},%{apachegroup}) %{cachedir}/config +# data directory writable for web server +%attr(-,%{apacheuser},%{apachegroup}) %{_datadir}/%{name}/app/data/tmp +# binaries +%defattr(-,root,root) +%{_bindir}/%{name}-clearcache +# stylesheet +%config(noreplace) %{_datadir}/%{name}/pub/styles/icinga.site.css + +%files mysql +%config(noreplace) %attr(644,-,-) %{_sysconfdir}/%{name}/conf.d/databases.xml + +%files pgsql +%config(noreplace) %attr(644,-,-) %{_sysconfdir}/%{name}/conf.d/databases.xml + + +%files module-pnp +# templates, experimental treatment as configs (noreplace) +%defattr(-,root,root) +%doc contrib/PNP_Integration/README contrib/PNP_Integration/INSTALL +%doc contrib/PNP_Integration/doc contrib/nginx +%dir %{_datadir}/icinga-web/app/modules/Cronks/data/xml/extensions +%config(noreplace) %attr(644,-,-) %{_datadir}/%{name}/app/modules/Cronks/data/xml/extensions/* + +%files scheduler +%defattr(-,root,root) +%{_sysconfdir}/cron.d/icingaCron +%attr(-,icinga,icinga) %{_localstatedir}/log/icingaCron + +%changelog diff --git a/fedora/SPECS/icinga.spec b/fedora/SPECS/icinga.spec new file mode 100644 index 0000000..665d1d3 --- /dev/null +++ b/fedora/SPECS/icinga.spec @@ -0,0 +1,603 @@ +# $Id$ +# Authority: cmr +# Upstream: The icinga devel team +# +# Needs libdbi +# +# ExclusiveDist: el5 el6 + +%define revision 0 + +%define logmsg logger -t %{name}/rpm + +%define logdir %{_localstatedir}/log/%{name} +%define spooldir %{_localstatedir}/spool/%{name} +%define plugindir %{_libdir}/nagios/plugins + +%if "%{_vendor}" == "suse" +%define apacheuser wwwrun +%define apachegroup www +%define apachename apache2 +%define apacheconfdir %{_sysconfdir}/%{apachename}/conf.d +%define extcmdfile %{_localstatedir}/icinga/rw/icinga.cmd +%define extcmdfiledir %{_localstatedir}/icinga/rw +%define readme README.SUSE +%define readmeido README.SUSE.idoutils +%endif +%if "%{_vendor}" == "redhat" +%define apachename httpd +%define apacheconfdir %{_sysconfdir}/%{apachename}/conf.d +%define apacheuser apache +%define apachegroup apache +%define extcmdfile %{_localstatedir}/spool/icinga/cmd/icinga.cmd +%define extcmdfiledir %{_localstatedir}/spool/icinga/cmd +%define readme README.RHEL +%define readmeido README.RHEL.idoutils +%endif + +# Systemd support for Fedora >= 15 +%if 0%{?fedora} >= 15 +%define using_systemd 1 +%else +%define using_sysvinit 1 +%endif + +# Check to see if we're allowed to use macroized systemd scriptlets, as +# introduced in Fedora 18. +%if 0%{?using_systemd} +%if 0%{?fedora} >= 18 +%define systemd_macro_scriptlet 1 +%else +%define systemd_macro_scriptlet 0 +%endif # Fedora >= 18 +%endif # using_systemd + +Summary: Open Source host, service and network monitoring program +Name: icinga +Version: 1.13.3 +Release: %{revision}%{?dist} +License: GPLv2 +Group: Applications/System +URL: http://www.icinga.org/ + +Source0: https://github.com/Icinga/icinga-core/releases/download/v%{version}/icinga-%{version}.tar.gz +Patch0: icinga-ido2db-systemd.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%if "%{_vendor}" == "redhat" +Requires(pre): shadow-utils +%endif + +%if 0%{?using_systemd} +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units +%endif + +BuildRequires: gcc +BuildRequires: gd-devel > 1.8 +BuildRequires: zlib-devel +BuildRequires: libpng-devel +BuildRequires: libjpeg-devel +BuildRequires: libdbi-devel +BuildRequires: perl(ExtUtils::Embed) +BuildRequires: make +### Requires: nagios-plugins +BuildRequires: %{apachename} +%if "%{_vendor}" == "suse" +BuildRequires: libopenssl-devel +%endif + + + +%description +Icinga is an application, system and network monitoring application. +It can escalate problems by email, pager or any other medium. It is +also useful for incident or SLA reporting. + +Icinga is written in C and is designed as a background process, +intermittently running checks on various services that you specify. + +The actual service checks are performed by separate "plugin" programs +which return the status of the checks to Icinga. + +Icinga is a fork of the nagios project. + +%package gui +Summary: Classic UI for %{name} +Group: Applications/System +Requires: %{apachename} +Requires: %{name}-doc = %{version}-%{release} +Requires: %{name}-classicui-config = %{version}-%{release} + +%description gui +This package contains the Classic UI for %{name}. Requires %{name}-doc +for the documentation module. + +%package gui-config +Summary: Classic UI configuration for %{name} +Group: Applications/System +Requires: %{apachename} +Provides: %{name}-classicui-config +Conflicts: icinga2-classicui-config + +%description gui-config +This packages contains the classic ui configuration for %{name}. + + +%package devel +Summary: Provides include files that Icinga-related applications may compile against +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This package provides include files that Icinga-related applications +may compile against. + +%package idoutils +Summary: transitional package, use idoutils-libdbi-* instead +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Requires: %{name}-idoutils-libdbi-mysql = %{version}-%{release} + +%description idoutils +Transitional package. Idoutils has been splitted into +idoutils-libdbi-mysql and idoutils-libdbi-pgsql. Use one +of these. This package pulls in idoutils-libdbi-mysql. +This package can be safely uninstalled, it provides no +files and nothing depends on it. + +%package idoutils-libdbi-mysql +Summary: database broker module for %{name} +Group: Applications/System +Requires: %{name} = %{version}-%{release} +%if 0%{?suse_version} >= 1210 +# opensuse +Requires: libdbi-drivers-dbd-mysql +%else +Requires: libdbi-dbd-mysql +%endif +Conflicts: %{name}-idoutils-libdbi-pgsql + +%description idoutils-libdbi-mysql +This package contains the idoutils broker module for %{name} which provides +database storage via libdbi and mysql. + +%package idoutils-libdbi-pgsql +Summary: database broker module for %{name} +Group: Applications/System +Requires: %{name} = %{version}-%{release} +%if 0%{?suse_version} >= 1210 +# opensuse +Requires: libdbi-drivers-dbd-pgsql +%else +Requires: libdbi-dbd-pgsql +%endif +Conflicts: %{name}-idoutils-libdbi-mysql + +%description idoutils-libdbi-pgsql +This package contains the idoutils broker module for %{name} which provides +database storage via libdbi and pgsql. + + +%package doc +Summary: documentation %{name} +Group: Documentation + +%description doc +Documentation for %{name} + + +%prep +%setup -qn %{name}-%{version} +%patch0 + +cat << EOF > README.idoutils.transitional +Transitional package. Idoutils has been splitted into +idoutils-libdbi-mysql and idoutils-libdbi-pgsql. Use one +of these. This package pulls in idoutils-libdbi-mysql. +This package can be safely uninstalled, it provides no +files and nothing depends on it. +EOF + +%build +%configure \ + --prefix=%{_datadir}/%{name} \ + --exec-prefix=%{_localstatedir}/lib/%{name} \ + --datadir="%{_datadir}/%{name}" \ + --datarootdir="%{_datadir}/%{name}" \ + --libexecdir="%{plugindir}" \ + --localstatedir="%{_localstatedir}/%{name}" \ + --libdir="%{_libdir}/%{name}" \ + --sbindir="%{_libdir}/%{name}/cgi" \ + --sysconfdir="%{_sysconfdir}/%{name}" \ + --with-gd-lib="%{_libdir}" \ + --with-gd-inc="%{_includedir}" \ + --with-htmurl="/icinga" \ + --with-cgiurl="/%{name}/cgi-bin" \ + --with-mainurl="/%{name}/cgi-bin/status.cgi?host=all&type=detail&servicestatustypes=29" \ + --with-init-dir="%{_initrddir}" \ + --with-lockfile="%{_localstatedir}/run/%{name}.pid" \ + --with-mail="/bin/mail" \ + --with-icinga-user="icinga" \ + --with-icinga-group="icinga" \ + --enable-event-broker \ + --enable-embedded-perl \ + --enable-idoutils \ + --with-httpd-conf=%{apacheconfdir} \ + --with-log-dir=%{logdir} \ + --enable-cgi-log \ + --with-cgi-log-dir=%{logdir}/gui \ + --with-plugin-dir="%{plugindir}" \ + --with-eventhandler-dir="%{_libdir}/%{name}/eventhandlers" \ + --with-p1-file-dir="%{_libdir}/%{name}" \ + --with-checkresult-dir="%{spooldir}/checkresults" \ + --with-ext-cmd-file-dir="%{extcmdfiledir}" \ + --with-http-auth-file="%{_sysconfdir}/%{name}/passwd" \ + --with-icinga-chkfile="%{spooldir}/icinga.chk" \ + --with-ido2db-lockfile="%{_localstatedir}/run/ido2db.pid" \ + --with-ido-sockfile="%{spooldir}/ido.sock" \ + --with-idomod-tmpfile="%{spooldir}/idomod.tmp" \ + --with-state-dir="%{spooldir}" + +%{__make} %{?_smp_mflags} all + +%install +%{__rm} -rf %{buildroot} +%{__mkdir} -p %{buildroot}/%{apacheconfdir} + +# Our make install invocation will differ depending on whether or not we're +# using systemd. +# without: make ... install-init ... +# with: make ... install-systemd ... +%if 0%{?using_systemd} +%define init_install systemd +%else +%define init_install init +%endif + +%{__make} install-unstripped \ + install-%{init_install} \ + install-commandmode \ + install-config \ + install-webconf \ + install-idoutils \ + install-eventhandlers \ + install-downtimes \ + DESTDIR="%{buildroot}" \ + INSTALL_OPTS="" \ + INSTALL_OPTS_WEB="" \ + COMMAND_OPTS="" \ + INIT_OPTS="" + +### strip binary +%{__strip} %{buildroot}%{_bindir}/{icinga,icingastats,log2ido,ido2db} +%{__strip} %{buildroot}%{_libdir}/icinga/cgi/*.cgi + +### move idoutils sample configs to final name +mv %{buildroot}%{_sysconfdir}/icinga/ido2db.cfg-sample %{buildroot}%{_sysconfdir}/icinga/ido2db.cfg +mv %{buildroot}%{_sysconfdir}/icinga/idomod.cfg-sample %{buildroot}%{_sysconfdir}/icinga/idomod.cfg +mv %{buildroot}%{_sysconfdir}/icinga/modules/idoutils.cfg-sample %{buildroot}%{_sysconfdir}/icinga/modules/idoutils.cfg + +### remove icinga-api +%{__rm} -rf %{buildroot}%{_datadir}/icinga/icinga-api + +# install logrotate rule +install -D -m 0644 icinga.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} + +# install sample htpasswd file +install -D -m 0644 icinga.htpasswd %{buildroot}%{_sysconfdir}/%{name}/passwd + +# install headers for development package +install -d -m0755 "%{buildroot}%{_includedir}/%{name}/" +install -m0644 include/*.h "%{buildroot}%{_includedir}/%{name}" + +# create perfdata dir by default +install -d -m0755 "%{buildroot}%{_localstatedir}/spool/%{name}/perfdata" + +%pre +# Add icinga user +%{_sbindir}/groupadd -r icinga 2> /dev/null || : +%{_sbindir}/groupadd -r icingacmd 2> /dev/null || : +%{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G icingacmd -g icinga icinga 2> /dev/null || : + + +%post + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_post icinga.service +%else +# manual systemd scriptlet +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi +%endif +%else +# No systemd, just plain old sysvinit +/sbin/chkconfig --add icinga +%endif + +# restart httpd for auth change +/sbin/service %{apachename} condrestart > /dev/null 2>&1 || : + +# start icinga +/sbin/service icinga start &>/dev/null || : + +%preun + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_preun icinga.service +%else +if [ $1 -eq 0 ]; then + # manual systemd scriptlet + # Package removal, not upgrade + /bin/systemctl --no-reload disable icinga.service > /dev/null 2>&1 || : + /bin/systemctl stop icinga.service > /dev/null 2>&1 || : +fi +%endif +%else +if [ $1 -eq 0 ]; then + # No systemd, just plain old sysvinit + /sbin/service icinga stop &>/dev/null || : + /sbin/chkconfig --del icinga +fi +%endif + +%postun +/sbin/service %{apachename} condrestart > /dev/null 2>&1 || : + +%pre gui +# Add apacheuser in the icingacmd group +# If the group exists, add the apacheuser in the icingacmd group. +# It is not neccessary that icinga-cgi is installed on the same system as +# icinga 1.x and only on systems with icinga installed the icingacmd +# group exists. +getent group icingacmd > /dev/null + +if [ $? -eq 0 ]; then +%if "%{_vendor}" == "suse" + %{_sbindir}/usermod -G icingacmd %{apacheuser} +%else + %{_sbindir}/usermod -a -G icingacmd %{apacheuser} +%endif +fi + +%post idoutils-libdbi-mysql + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_post ido2db.service +%else +# manual systemd scriptlet +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi +%endif +%else +# No systemd, just plain old sysvinit +/sbin/chkconfig --add ido2db +%endif + +%logmsg "idoutils-libdbi-mysql installed. don't forget to install/upgrade db schema, check %{readmeido}" + +%preun idoutils-libdbi-mysql + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_preun ido2db.service +%else +if [ $1 -eq 0 ]; then + # manual systemd scriptlet + # Package removal, not upgrade + /bin/systemctl --no-reload disable ido2db.service > /dev/null 2>&1 || : + /bin/systemctl stop ido2db.service > /dev/null 2>&1 || : +fi +%endif +%else +if [ $1 -eq 0 ]; then + # No systemd, just plain old sysvinit + /sbin/service ido2db stop &>/dev/null || : + /sbin/chkconfig --del ido2db +fi +%endif + +%post idoutils-libdbi-pgsql + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_post ido2db.service +%else +# manual systemd scriptlet +if [ $1 -eq 1 ] ; then + # Initial installation + /bin/systemctl daemon-reload >/dev/null 2>&1 || : +fi +%endif +%else +# No systemd, just plain old sysvinit +/sbin/chkconfig --add ido2db +%endif + +### change ido2db.cfg to match pgsql config +# check if this is an upgrade +if [ $1 -eq 2 ] +then + %{__cp} %{_sysconfdir}/icinga/ido2db.cfg %{_sysconfdir}/icinga/ido2db.cfg.pgsql + %{__perl} -pi -e ' + s|db_servertype=mysql|db_servertype=pgsql|; + s|db_port=3306|db_port=5432|; + ' %{_sysconfdir}/icinga/ido2db.cfg.pgsql + %logmsg "Warning: upgrade, pgsql config written to ido2db.cfg.pgsql" +fi +# install +if [ $1 -eq 1 ] +then + %{__perl} -pi -e ' + s|db_servertype=mysql|db_servertype=pgsql|; + s|db_port=3306|db_port=5432|; + ' %{_sysconfdir}/icinga/ido2db.cfg +fi + +%logmsg "idoutils-libdbi-pgsql installed. don't forget to install/upgrade db schema, check %{readmeido}" + + +%preun idoutils-libdbi-pgsql + +%if 0%{?using_systemd} +%if 0%{?systemd_macro_scriptlet} +%systemd_preun ido2db.service +%else +if [ $1 -eq 0 ]; then + # manual systemd scriptlet + # Package removal, not upgrade + /bin/systemctl --no-reload disable ido2db.service > /dev/null 2>&1 || : + /bin/systemctl stop ido2db.service > /dev/null 2>&1 || : +fi +%endif +%else +if [ $1 -eq 0 ]; then + # No systemd, just plain old sysvinit + /sbin/service ido2db stop &>/dev/null || : + /sbin/chkconfig --del ido2db +fi +%endif + + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING %{readme} +%if 0%{?using_systemd} +%attr(755,-,-) %{_unitdir}/icinga.service +%attr(644,-,-) %{_sysconfdir}/sysconfig/icinga +%else +%attr(755,-,-) %{_initrddir}/icinga +%endif +%dir %{_sysconfdir}/%{name} +%dir %{_sysconfdir}/%{name}/modules +%config(noreplace) %{_sysconfdir}/%{name}/icinga.cfg +%dir %{_sysconfdir}/%{name}/objects +%dir %{_sysconfdir}/%{name}/conf.d +%config(noreplace) %{_sysconfdir}/%{name}/objects/commands.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/contacts.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/notifications.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/localhost.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/printer.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/switch.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/templates.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/timeperiods.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/windows.cfg +%config(noreplace) %attr(640,icinga,icinga) %{_sysconfdir}/%{name}/resource.cfg +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%attr(755,-,-) %{_bindir}/icinga +%attr(755,-,-) %{_bindir}/icingastats +%attr(755,-,-) %{_libdir}/icinga/p1.pl +%{_libdir}/%{name}/eventhandlers +%{plugindir}/downtimes +%defattr(-,icinga,icinga,-) +%dir %{logdir} +%dir %{logdir}/archives +%dir %{_localstatedir}/spool/%{name} +%dir %{_localstatedir}/spool/%{name}/perfdata +%dir %{_localstatedir}/spool/%{name}/checkresults +%attr(2755,icinga,icingacmd) %{extcmdfiledir} + +%files doc +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING %{readme} +%{_datadir}/%{name}/docs + +%files gui +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING %{readme} +%{_libdir}/%{name}/cgi/avail.cgi +%{_libdir}/%{name}/cgi/cmd.cgi +%{_libdir}/%{name}/cgi/config.cgi +%{_libdir}/%{name}/cgi/extinfo.cgi +%{_libdir}/%{name}/cgi/histogram.cgi +%{_libdir}/%{name}/cgi/history.cgi +%{_libdir}/%{name}/cgi/notifications.cgi +%{_libdir}/%{name}/cgi/outages.cgi +%{_libdir}/%{name}/cgi/showlog.cgi +%{_libdir}/%{name}/cgi/status.cgi +%{_libdir}/%{name}/cgi/statusmap.cgi +%{_libdir}/%{name}/cgi/summary.cgi +%{_libdir}/%{name}/cgi/tac.cgi +%{_libdir}/%{name}/cgi/trends.cgi +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/images +%{_datadir}/%{name}/index.html +%{_datadir}/%{name}/js +%{_datadir}/%{name}/main.html +%{_datadir}/%{name}/media +%{_datadir}/%{name}/menu.html +%{_datadir}/%{name}/robots.txt +%{_datadir}/%{name}/ssi +%{_datadir}/%{name}/stylesheets +%{_datadir}/%{name}/jquery-ui +%{_datadir}/%{name}/jquery-ui-addon +%attr(2775,icinga,icingacmd) %dir %{logdir}/gui +%attr(664,icinga,icingacmd) %{logdir}/gui/index.htm +%attr(664,icinga,icingacmd) %{logdir}/gui/.htaccess + +%files gui-config +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING %{readme} +%config(noreplace) %{_sysconfdir}/%{name}/cgi.cfg +%config(noreplace) %{_sysconfdir}/%{name}/cgiauth.cfg +%config(noreplace) %{apacheconfdir}/icinga.conf +%config(noreplace) %attr(0640,root,%{apachegroup}) %{_sysconfdir}/%{name}/passwd + + +%files devel +%defattr(-,root,root) +%{_includedir}/%{name}/ + +%files idoutils +%defattr(-,root,root) +%doc README.idoutils.transitional + +%files idoutils-libdbi-mysql +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING module/idoutils/db %{readme} %{readmeido} +%if 0%{?using_systemd} +%attr(644,-,-) %{_unitdir}/ido2db.service +%else +%attr(755,-,-) %{_initrddir}/ido2db +%endif +%attr(660,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ido2db.cfg +%config(noreplace) %{_sysconfdir}/%{name}/idomod.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/idoutils.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/ido2db_check_proc.cfg +%{_bindir}/ido2db +%{_bindir}/log2ido +%{_libdir}/%{name}/idomod.so + +%files idoutils-libdbi-pgsql +%defattr(-,root,root,-) +%doc README.md LICENSE Changelog UPGRADING module/idoutils/db %{readme} %{readmeido} +%if 0%{?using_systemd} +%attr(644,-,-) %{_unitdir}/ido2db.service +%else +%attr(755,-,-) %{_initrddir}/ido2db +%endif +%attr(660,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ido2db.cfg +%config(noreplace) %{_sysconfdir}/%{name}/idomod.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/idoutils.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/flapjack.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/livestatus.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/mod_gearman.cfg +%config(noreplace) %{_sysconfdir}/%{name}/modules/pnp4nagios.cfg +%config(noreplace) %{_sysconfdir}/%{name}/objects/ido2db_check_proc.cfg +%{_bindir}/ido2db +%{_bindir}/log2ido +%{_libdir}/%{name}/idomod.so + + +%changelog diff --git a/fedora/SPECS/icli.spec b/fedora/SPECS/icli.spec new file mode 100644 index 0000000..e091b78 --- /dev/null +++ b/fedora/SPECS/icli.spec @@ -0,0 +1,88 @@ +Name: icli +Version: 0.48 +%if %{_vendor} == "suse" +Release: 01.%{_distro} +%else +Release: 1%{?dist} +%endif +Summary: Nagios/Icinga commandline interface +Group: System/Monitoring +License: GPL +URL: http://derf.homelinux.org/ +Source0: %{name}-%{version}.tgz +BuildRequires: perl-Module-Build perl-Test-Command perl-Test-Compile perl-autodie +BuildRequires: perl-Test-Pod perl-Term-Size perl-autodie perl-List-MoreUtils +Requires: perl-Term-Size +Requires: icinga +%if %{_vendor} == "suse" +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%endif +%define debug_package %{nil} + +%define idir %{_datadir}/%{name} + +%description +icli is a command line interface to Icinga. By default it lists all services and their states. + +Note that when supplying custom config and status file paths, icli also works with Nagios. +100% compatibility is not guaranteed, however. + +icli only works when executed on the host running the Icinga daemon. +To use it on another host, shell aliases (like alias icli='ssh $icingahost icli') +or similar are recommended. + +You can narrow down the list of services you want displayed either using filters +(like icli -z!o), the -h/-s arguments (icli -h aneurysm -s Libraries,Websites) or +commandline args (icli aneurysm/{Libraries,Websites} with shell expansion). + +%prep +%setup -q -n %{name}-%{version} + +%build +%if %{_vendor} == "suse" +%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} \ +--installdirs vendor --icli-object-file=/var/lib/icinga/objects.cache \ +--icli-status-file=/var/lib/icinga/status.dat --icli-command-file=/var/spool/icinga/icinga.cmd +%else +%if %{_vendor} == "redhat" +%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} \ +--installdirs vendor --icli-object-file=/var/spool/icinga/objects.cache \ +--icli-status-file=/var/spool/icinga/status.dat --icli-command-file=/var/spool/icinga/cmd/icinga.cmd +%else +%{__perl} Build.PL --destdir %{buildroot} --install_base %{_prefix} --installdirs vendor +%endif +%endif +./Build + +%install +./Build install +%{__install} -d %{buildroot}%{_mandir} +# the installer installs the module into /usr/lib/perl5 directly, but this is not found, when using icli: +%{__install} -d %{buildroot}%{perl_vendorlib} +mv %{buildroot}%{_prefix}/lib/perl5/App %{buildroot}%{perl_vendorlib} +mv %{buildroot}%{_prefix}/man/man1 %{buildroot}%{_mandir} +mv %{buildroot}%{_prefix}/man/man3 %{buildroot}%{_mandir} +rmdir %{buildroot}%{_prefix}/man +rm -rf %{buildroot}%{_prefix}/lib/perl5/x86_64-linux-thread-multi + +%clean +[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}/* +[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/* + +%files +%defattr(0644,root,root,0755) +%doc Changelog COPYING README +%attr(0755,icinga,icinga) %{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz +%{_mandir}/man3/App::Icli.3pm.gz +%{_mandir}/man3/App::Icli::ConfigData.3pm.gz +%{perl_vendorlib}/App/Icli.pm +%{perl_vendorlib}/App/Icli/ConfigData.pm + +%changelog +* Wed Jun 18 2014 +- Upgraded to 0.48 release +* Mon Jan 13 2014 +- Upgraded to git version of package. +* Sat Jan 11 2014 +- New package. diff --git a/fedora/SPECS/istatserver.spec b/fedora/SPECS/istatserver.spec new file mode 100644 index 0000000..086f408 --- /dev/null +++ b/fedora/SPECS/istatserver.spec @@ -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 +- First build for Fedora 25. diff --git a/fedora/SPECS/kodi.spec b/fedora/SPECS/kodi.spec new file mode 100644 index 0000000..4b1828c --- /dev/null +++ b/fedora/SPECS/kodi.spec @@ -0,0 +1,429 @@ +#global PRERELEASE rc1 +%global DIRVERSION %{version} +#global GITCOMMIT Gotham_r2-ge988513 +# use the line below for pre-releases +#global DIRVERSION %{version}%{PRERELEASE} +%global _hardened_build 1 + +Name: kodi +Version: 17.0b5 +Release: 1%{?dist} +Summary: Media center + +License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT +# Main binary and all supporting files are GPLv2+/GPLv3+ +# Some supporting libraries use the LGPL / BSD / MIT license +Group: Applications/Multimedia +URL: http://www.kodi.tv/ +Source0: %{name}-%{DIRVERSION}-patched.tar.xz +# kodi contains code that we cannot ship, as well as redundant private +# copies of upstream libraries that we already distribute. Therefore +# we use this script to remove the code before shipping it. +# Invoke this script while in the directory where the tarball is located: +# ./kodi-generate-tarball-xz.sh +Source1: kodi-generate-tarball-xz.sh + +# filed ticket, but patch still needs work +# http://trac.xbmc.org/ticket/9658 +Patch1: xbmc-13.0-dvdread.patch + +# Set program version parameters +Patch2: kodi-16.0-versioning.patch + +# Remove call to internal ffmpeg function (misued anyway) +Patch3: kodi-14.0-dvddemux-ffmpeg.patch + +# Disable dcadec library detection when using external ffmpeg (dcadec is only +# needed to build bundled ffmpeg) +Patch4: kodi-16.0-dcadec.patch + +Patch5: ffmpeg-2.9.patch + +Patch6: gcc6.patch +Patch7: kodi-avicodec.patch + +# Optional deps (not in EPEL) +%if 0%{?fedora} +# (libbluray in EPEL 6 is too old.) +%global _with_libbluray 1 +%global _with_cwiid 1 +%global _with_libssh 1 +%global _with_libcec 1 +%global _with_external_ffmpeg 1 +%global _with_wayland 0 +%endif + +%ifarch x86_64 i686 +%global _with_crystalhd 1 +%endif + +# Upstream does not support ppc64 +ExcludeArch: ppc64 + +BuildRequires: SDL2-devel +BuildRequires: SDL_image-devel +BuildRequires: a52dec-devel +BuildRequires: afpfs-ng-devel +BuildRequires: avahi-devel +BuildRequires: bluez-libs-devel +BuildRequires: boost-devel +BuildRequires: bzip2-devel +BuildRequires: cmake +BuildRequires: crossguid-devel +%if 0%{?_with_cwiid} +BuildRequires: cwiid-devel +%endif +BuildRequires: dbus-devel +BuildRequires: desktop-file-utils +BuildRequires: e2fsprogs-devel +BuildRequires: enca-devel +BuildRequires: expat-devel +BuildRequires: faad2-devel +%if 0%{?_with_external_ffmpeg} +BuildRequires: ffmpeg-devel +%endif +BuildRequires: flac-devel +BuildRequires: flex +BuildRequires: fontconfig-devel +BuildRequires: fontpackages-devel +BuildRequires: freetype-devel +BuildRequires: fribidi-devel +%if 0%{?el6} +BuildRequires: gettext-devel +%else +BuildRequires: gettext-autopoint +%endif +BuildRequires: glew-devel +BuildRequires: glib2-devel +BuildRequires: gperf +BuildRequires: jasper-devel +BuildRequires: java-devel +BuildRequires: lame-devel +BuildRequires: libXinerama-devel +BuildRequires: libXmu-devel +BuildRequires: libXtst-devel +BuildRequires: libass-devel >= 0.9.7 +%if 0%{?_with_libbluray} +BuildRequires: libbluray-devel +%endif +BuildRequires: libcap-devel +BuildRequires: libcdio-devel +%if 0%{?_with_libcec} +BuildRequires: libcec-devel >= 3.0.0 +%endif +%if 0%{?_with_crystalhd} +BuildRequires: libcrystalhd-devel +%endif +BuildRequires: libcurl-devel +BuildRequires: libdca-devel +BuildRequires: libdvdread-devel +%if 0%{?el6} +BuildRequires: libjpeg-devel +%else +BuildRequires: libjpeg-turbo-devel +%endif +BuildRequires: libmad-devel +BuildRequires: libmicrohttpd-devel +BuildRequires: libmms-devel +BuildRequires: libmodplug-devel +BuildRequires: libmpcdec-devel +BuildRequires: libmpeg2-devel +BuildRequires: libnfs-devel +BuildRequires: libogg-devel +# for AirPlay support +BuildRequires: shairplay-devel +BuildRequires: libplist-devel +BuildRequires: libpng-devel +BuildRequires: librtmp-devel +BuildRequires: libsamplerate-devel +BuildRequires: libsmbclient-devel +%if 0%{?_with_libssh} +BuildRequires: libssh-devel +%endif +BuildRequires: libtiff-devel +BuildRequires: libtool +BuildRequires: libuuid-devel +%ifnarch %{arm} +BuildRequires: libva-devel +BuildRequires: libvdpau-devel +%endif +BuildRequires: libvorbis-devel +%if 0%{?_with_wayland} +BuildRequires: libwayland-client-devel +%endif +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: lzo-devel +BuildRequires: mariadb-devel +# ARM uses GLES +%ifarch %{arm} +BuildRequires: mesa-libEGL-devel +BuildRequires: mesa-libGLES-devel +%endif +BuildRequires: nasm +BuildRequires: pcre-devel +BuildRequires: pixman-devel +BuildRequires: pulseaudio-libs-devel +BuildRequires: python-devel +BuildRequires: python-pillow +BuildRequires: sqlite-devel +BuildRequires: swig +BuildRequires: systemd-devel +BuildRequires: taglib-devel >= 1.8 +BuildRequires: tinyxml-devel +BuildRequires: tre-devel +BuildRequires: trousers-devel +BuildRequires: wavpack-devel +%if 0%{?_with_wayland} +BuildRequires: weston-devel +%endif +BuildRequires: yajl-devel +BuildRequires: zlib-devel + +Requires: google-roboto-fonts +# need explicit requires for these packages +# as they are dynamically loaded via XBMC's arcane +# pseudo-DLL loading scheme (sigh) +%if 0%{?_with_libbluray} +Requires: libbluray%{?_isa} +%endif +%if 0%{?_with_libcec} +Requires: libcec%{?_isa} >= 3.0.0 +%endif +%if 0%{?_with_crystalhd} +Requires: libcrystalhd%{?_isa} +%endif +Requires: libmad%{?_isa} +Requires: librtmp%{?_isa} +Requires: shairplay-libs%{?_isa} + +# needed when doing a minimal install, see +# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1844 +Requires: glx-utils +Requires: xorg-x11-utils + +# This is just symlinked to, but needed both at build-time +# and for installation +Requires: python-pillow%{?_isa} + + +%description +Kodi is a free cross-platform media-player jukebox and entertainment hub. +Kodi can play a spectrum of of multimedia formats, and featuring playlist, +audio visualizations, slideshow, and weather forecast functions, together +third-party plugins. + + +%package devel +Summary: Development files needed to compile C programs against kodi +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Obsoletes: xbmc-devel < 14.0 +Provides: xbmc-devel = %{version} + +%description devel +Kodi is a free cross-platform media-player jukebox and entertainment hub. +If you want to develop programs which use Kodi's libraries, you need to +install this package. + + +%package eventclients +Summary: Media center event client remotes +Obsoletes: xbmc-eventclients < 14.0 +Provides: xbmc-eventclients = %{version} + +%description eventclients +This package contains support for using Kodi with the PS3 Remote, the Wii +Remote, a J2ME based remote and the command line xbmc-send utility. + +%package eventclients-devel +Summary: Media center event client remotes development files +Requires: %{name}-eventclients%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Obsoletes: xbmc-eventclients-devel < 14.0 +Provides: xbmc-eventclients-devel = %{version} + +%description eventclients-devel +This package contains the development header files for the eventclients +library. + + +%prep +%setup -q -n %{name}-%{DIRVERSION} +#%patch1 -p1 +%patch2 -p1 +#%patch3 -p0 +#%patch4 -p0 +#%patch5 -p1 +#%if 0%{?fedora} >= 24 +#%patch6 -p1 +#%endif +%patch7 + + +%build +chmod +x bootstrap +./bootstrap +# Can't use export nor %%configure (implies using export), because +# the Makefile pile up *FLAGS in this case. + +./configure \ +--prefix=%{_prefix} --bindir=%{_bindir} --includedir=%{_includedir} \ +--libdir=%{_libdir} --datadir=%{_datadir} \ +--with-lirc-device=/var/run/lirc/lircd \ +%if 0%{?_with_external_ffmpeg} +--with-ffmpeg=shared \ +%endif +%if 0%{?_with_wayland} +--enable-wayland \ +%endif +--enable-pulse \ +%if 0%{?_with_libcec} +--enable-libcec \ +%else +--disable-libcec \ +%endif +%if 0%{?_with_libssh} +--enable-ssh \ +%else +--disable-ssh \ +%endif +--disable-optimizations --disable-debug \ +%ifnarch %{arm} +--enable-gl \ +--disable-gles \ +--enable-vdpau \ +%else +--enable-gles \ +--disable-vdpau \ +--disable-vaapi \ +%ifarch armv7hl \ +--enable-tegra \ +--disable-neon \ +%endif +%ifarch armv7hnl +--enable-neon \ +%endif +%endif +CFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \ +CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I/usr/include/afpfs-ng/ -I/usr/include/samba-4.0/ -D__STDC_CONSTANT_MACROS" \ +LDFLAGS="-fPIC" \ +ASFLAGS=-fPIC + +make %{?_smp_mflags} VERBOSE=1 + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +make -C tools/EventClients DESTDIR=$RPM_BUILD_ROOT install +# remove the doc files from unversioned /usr/share/doc/xbmc, they should be in versioned docdir +rm -r $RPM_BUILD_ROOT/%{_datadir}/doc/ + +desktop-file-install \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + $RPM_BUILD_ROOT%{_datadir}/applications/kodi.desktop + +# Normally we are expected to build these manually. But since we are using +# the system Python interpreter, we also want to use the system libraries +install -d $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib +ln -s %{python_sitearch}/PIL $RPM_BUILD_ROOT%{_libdir}/kodi/addons/script.module.pil/lib/PIL +#install -d $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib +#ln -s %{python_sitearch}/pysqlite2 $RPM_BUILD_ROOT%{_libdir}/xbmc/addons/script.module.pysqlite/lib/pysqlite2 + +# Use external Roboto font files instead of bundled ones +#ln -sf %{_fontbasedir}/google-roboto/Roboto-Regular.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.confluence/fonts/ +#ln -sf %{_fontbasedir}/google-roboto/Roboto-Bold.ttf ${RPM_BUILD_ROOT}%{_datadir}/kodi/addons/skin.confluence/fonts/ + +# Move man-pages into system dir +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/ +mv docs/manpages ${RPM_BUILD_ROOT}%{_mandir}/man1/ + + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +if [ ! -L %{_libdir}/xbmc ] ; then + rmdir %{_libdir}/xbmc %{_datadir}/xbmc + ln -s kodi ${RPM_BUILD_ROOT}%{_libdir}/xbmc + ln -s kodi ${RPM_BUILD_ROOT}%{_datadir}/xbmc +fi + + +%posttrans devel +if [ ! -L %{_includedir}/xbmc ] ; then + rmdir %{_includedir}/xbmc + ln -s kodi ${RPM_BUILD_ROOT}%{_includedir}/xbmc +fi + + +%files +%license copying.txt LICENSE.GPL +%doc CONTRIBUTING.md README.md docs +%{_bindir}/kodi +%{_bindir}/kodi-standalone +%{_bindir}/xbmc +%{_bindir}/xbmc-standalone +%{_libdir}/kodi +%ghost %{_libdir}/xbmc +%{_datadir}/kodi +%ghost %{_datadir}/xbmc +%{_datadir}/xsessions/kodi.desktop +%{_datadir}/xsessions/xbmc.desktop +%{_datadir}/applications/kodi.desktop +%{_datadir}/icons/hicolor/*/*/*.png +%{_mandir}/man1/kodi.1.gz +%{_mandir}/man1/kodi.bin.1.gz +%{_mandir}/man1/kodi-standalone.1.gz + + +%files devel +%{_includedir}/kodi +%ghost %{_includedir}/xbmc + + +%files eventclients +%license copying.txt LICENSE.GPL +%python_sitelib/kodi +%dir %{_datadir}/pixmaps/kodi +%{_datadir}/pixmaps/kodi/*.png +%{_bindir}/kodi-ps3d +%{_bindir}/kodi-ps3remote +%{_bindir}/kodi-send +%{_bindir}/kodi-wiiremote +%{_mandir}/man1/kodi-ps3remote.1.gz +%{_mandir}/man1/kodi-send.1.gz +%{_mandir}/man1/kodi-standalone.1.gz +%{_mandir}/man1/kodi-wiiremote.1.gz + + +%files eventclients-devel +%{_includedir}/kodi/xbmcclient.h + + +%changelog +* Fri Nov 25 2016 Daniel Steiner +- Update to Krypton Beta5, built on Fedora 25 + +* Wed Oct 26 2016 Daniel Steiner +- Update to Krypton Beta4 + +* Thu Oct 6 2016 Daniel Steiner +- Update to Krypton Beta3 + +* Tue Sep 20 2016 Daniel Steiner +- Update to Krypton Beta2 + +* Sun Jul 31 2016 Daniel Steiner +- New build for Fedora 24 + diff --git a/fedora/SPECS/libmediascan.spec b/fedora/SPECS/libmediascan.spec new file mode 100644 index 0000000..90fd98a --- /dev/null +++ b/fedora/SPECS/libmediascan.spec @@ -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 - 0.1-1 +- Initial rpmfusion package diff --git a/fedora/SPECS/libnfs.spec b/fedora/SPECS/libnfs.spec new file mode 100644 index 0000000..5a9aae0 --- /dev/null +++ b/fedora/SPECS/libnfs.spec @@ -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 diff --git a/fedora/SPECS/libva-intel-driver.spec b/fedora/SPECS/libva-intel-driver.spec new file mode 100644 index 0000000..3de7bd2 --- /dev/null +++ b/fedora/SPECS/libva-intel-driver.spec @@ -0,0 +1,170 @@ +#global _with_gen4asm 1 + +Name: libva-intel-driver +Version: 1.6.1 +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 +* Tue May 05 2015 Nicolas Chauvet - 1.5.1-1 +- Update to 1.5.1 + +* Tue Oct 28 2014 Nicolas Chauvet - 1.4.1-1 +- Update to 1.4.1 + +* Mon Sep 01 2014 Sérgio Basto - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jun 02 2014 Nicolas Chauvet - 1.3.1-1 +- Update to 1.3.1 + +* Sat Apr 12 2014 Nicolas Chauvet - 1.3.0-2 +- Add missing wayland-scanner BR + +* Sat Apr 12 2014 Nicolas Chauvet - 1.3.0-1 +- Update to 1.3.0 + +* Tue Mar 04 2014 Nicolas Chauvet - 1.2.2-2 +- Backport patch - rhbz#3193 + +* Mon Feb 17 2014 Nicolas Chauvet - 1.2.2-1 +- Update to 1.2.2 + +* Tue Oct 01 2013 Nicolas Chauvet - 1.2.1-1 +- Update to 1.2.1 + +* Wed Jun 26 2013 Nicolas Chauvet - 1.2.0-1 +- Update to 1.2.0 + +* Wed Mar 20 2013 Nicolas Chauvet - 1.0.20-1 +- Update to 1.0.20 +- Spec file clean-up + +* Fri Nov 09 2012 Nicolas Chauvet - 1.0.19-1 +- Update to 1.0.19 + +* Fri Aug 03 2012 Nicolas Chauvet - 1.0.18-4 +- Update to final 1.0.18 + +* Wed Jul 11 2012 Nicolas Chauvet - 1.0.18-3 +- Switch to pkgconfig(libudev) + +* Mon Jun 04 2012 Nicolas Chauvet - 1.0.18-1 +- Update to 1.0.18 + +* Sat May 26 2012 Nicolas Chauvet - 1.0.15-4 +- Introduce --with gen4asm + +* Tue Jan 03 2012 Nicolas Chauvet - 1.0.15-3 +- Add BR intel-gen4asm +- Move pre-built asm code +- Adjust license with EPL + +* Mon Jan 02 2012 Nicolas Chauvet - 1.0.15-2 +- Spec cleanup + +* Thu Nov 03 2011 Nicolas Chauvet - 1.0.15-1 +- Rename the package to libva-intel-driver + +* Sun Aug 07 2011 Nicolas Chauvet - 1.0.14-1 +- Update to 1.0.14 + +* Sat Jun 11 2011 Nicolas Chauvet - 1.0.13-2 +- Fix typo when building --with full +- Requires at least the same libva version. + +* Wed Jun 08 2011 Nicolas Chauvet - 1.0.13-1 +- Update to 1.0.13 + +* Sun Apr 10 2011 Nicolas Chauvet - 1.0.12-1 +- Update to 1.0.12 + +* Thu Mar 10 2011 Nicolas Chauvet - 1.0.10-1 +- Switch to additional package using the freedesktop version +- Add git rev from today as patch + +* Mon Feb 21 2011 Nicolas Chauvet - 1.0.10-1 +- Update to 1.0.10 + +* Tue Jan 25 2011 Adam Williamson - 1.0.8-1 +- bump to new version +- fix modded tarball to actually not have i965 dir +- merge with the other spec I seem to have lying around somewhere + +* Wed Nov 24 2010 Adam Williamson - 1.0.6-1 +- switch to upstream from sds branch (sds now isn't carrying any very + interesting changes according to gwenole) +- pull in the dont-install-test-programs patch from sds +- split out libva-utils again for multilib purposes +- drop -devel package obsolete/provides itself too + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-3.sds4 +- drop obsoletes and provides of itself (hangover from freeworld) + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-2.sds4 +- fix the tarball to actually remove the i965 code (duh) + +* Thu Oct 7 2010 Adam Williamson - 0.31.1-1.sds4 +- initial package (based on package from elsewhere by myself and Nic + Chauvet with i965 driver removed) diff --git a/fedora/SPECS/libva.spec b/fedora/SPECS/libva.spec new file mode 100644 index 0000000..b285e10 --- /dev/null +++ b/fedora/SPECS/libva.spec @@ -0,0 +1,202 @@ +Name: libva +Version: 1.6.1 +Release: 1%{?dist} +Summary: Video Acceleration (VA) API for Linux +Group: System Environment/Libraries +License: MIT +URL: http://freedesktop.org/wiki/Software/vaapi +Source0: http://www.freedesktop.org/software/vaapi/releases/libva/libva-%{version}.tar.bz2 + +BuildRequires: libudev-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libdrm-devel +BuildRequires: libpciaccess-devel +BuildRequires: mesa-libEGL-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLES-devel +%{!?_without_wayland: +BuildRequires: wayland-devel +BuildRequires: pkgconfig(wayland-client) >= 1 +BuildRequires: pkgconfig(wayland-scanner) >= 1 +BuildRequires: pkgconfig(wayland-server) >= 1 +} +# owns the %{_libdir}/dri directory +Requires: mesa-dri-filesystem + +%description +Libva is a library providing the VA API video acceleration API. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package utils +Summary: Tools for %{name} (including vainfo) +Group: Development/Libraries +Requires: %{name}%{_isa} = %{version}-%{release} + +%description utils +The %{name}-utils package contains tools that are provided as part +of %{name}, including the vainfo tool for determining what (if any) +%{name} support is available on a system. + + +%prep +%setup -q + +%build +%configure --disable-static \ + --enable-glx \ +%{?_without_wayland:--disable-wayland} + +# remove rpath from libtool +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} INSTALL="install -p" +find %{buildroot} -regex ".*\.la$" | xargs rm -f -- + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING +%{_libdir}/libva*.so.* +# Keep these specific: if any new real drivers start showing up +# in libva, we need to know about it so they can be patent-audited +%{_libdir}/dri/dummy_drv_video.so + +%files devel +%{_includedir}/va +%{_libdir}/libva*.so +%{_libdir}/pkgconfig/libva*.pc + +%files utils +%{_bindir}/vainfo +%{_bindir}/loadjpeg +%{_bindir}/jpegenc +%{_bindir}/avcenc +%{_bindir}/h264encode +%{_bindir}/mpeg2vldemo +%{_bindir}/mpeg2vaenc +%{_bindir}/putsurface +%{!?_without_wayland:%{_bindir}/putsurface_wayland} + +%changelog +* Sun Apr 19 2015 Nicolas Chauvet - 1.5.1-1 +- Update to 1.5.1 + +* Sat Oct 25 2014 Nicolas Chauvet - 1.4.1-1 +- Update to 1.4.1 + +* Wed Oct 8 2014 Simon Farnsworth - 1.4.0-1 +- Update to 1.4.0 + +* Sun Aug 17 2014 Fedora Release Engineering - 1.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jun 20 2014 Elad Alfassa - 1.3.1-3 +- Apply upstream patch to fix a firefox crash (rhbz #1105890) + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 13 2014 Nicolas Chauvet - 1.3.1-1 +- Update to 1.3.1 + +* Tue Apr 08 2014 Nicolas Chauvet - 1.3.0-1 +- Update to 1.3.0 +- Enable wayland by default + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jun 27 2013 Nicolas Chauvet - 1.2.1-1 +- Update to 1.2.1 +- Add mpeg2vaenc + +* Wed Jun 26 2013 Nicolas Chauvet - 1.2.0-1 +- Update to 1.2.0 +- Exclude mpeg2enc for now - namespace clash + +* Fri Apr 12 2013 Nicolas Chauvet - 1.1.1-2 +- Switch Requires to mesa-dri-filesystem + +* Wed Mar 20 2013 Nicolas Chauvet - 1.1.1-1 +- Update to 1.1.1 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 20 2012 Nicolas Chauvet - 1.1.0-5 +- Drop wayland support - Lead to suspicious crash + to reintroduce later using alternates build for vainfo and libs. + +* Thu Nov 15 2012 Nicolas Chauvet - 1.1.0-4 +- Fix condition rhbz#877059 + +* Sat Oct 06 2012 Nicolas Chauvet - 1.1.0-3 +- Update to official 1.1.0 release +- Enable Wayland support on f18 - add subpackage +- Clean spec file + +* Thu Jul 19 2012 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 01 2012 Nicolas Chauvet - 1.1.0-1 +- Update to 1.1.0 - VA-API version 0.33.0 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 03 2011 Nicolas Chauvet - 1.0.15-1 +- Update to 1.0.15 +- Back to vanilla upstream sources - no backend are provided anymore + +* Sun Aug 07 2011 Nicolas Chauvet - 1.0.14-1 +- Update to 1.0.14 + +* Fri Jun 10 2011 Nicolas Chauvet - 1.0.13-2 +- Add versioned requirement between main/utils + +* Wed Jun 08 2011 Nicolas Chauvet - 1.0.13-1 +- Update to 1.0.13 + +* Fri Apr 08 2011 Nicolas Chauvet - 1.0.12-1 +- Update to 1.0.12 + +* Mon Feb 21 2011 Nicolas Chauvet - 1.0.10-1 +- Update to 1.0.10 + +* Tue Jan 25 2011 Adam Williamson - 1.0.8-1 +- bump to new version +- fix modded tarball to actually not have i965 dir +- merge with the other spec I seem to have lying around somewhere + +* Wed Nov 24 2010 Adam Williamson - 1.0.6-1 +- switch to upstream from sds branch (sds now isn't carrying any very + interesting changes according to gwenole) +- pull in the dont-install-test-programs patch from sds +- split out libva-utils again for multilib purposes +- drop -devel package obsolete/provides itself too + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-3.sds4 +- drop obsoletes and provides of itself (hangover from freeworld) + +* Tue Nov 23 2010 Adam Williamson - 0.31.1-2.sds4 +- fix the tarball to actually remove the i965 code (duh) + +* Thu Oct 7 2010 Adam Williamson - 0.31.1-1.sds4 +- initial package (based on package from elsewhere by myself and Nic + Chauvet with i965 driver removed) diff --git a/fedora/SPECS/lm-perl-vendor.spec b/fedora/SPECS/lm-perl-vendor.spec new file mode 100644 index 0000000..90fe02d --- /dev/null +++ b/fedora/SPECS/lm-perl-vendor.spec @@ -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 + +%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 +- Build for perl 5.22, see version of package. diff --git a/fedora/SPECS/lnav.spec b/fedora/SPECS/lnav.spec new file mode 100644 index 0000000..058dbab --- /dev/null +++ b/fedora/SPECS/lnav.spec @@ -0,0 +1,101 @@ +Name: lnav +Version: 0.8.0 +Release: 2%{?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 Feb 23 2016 Daniel Steiner +- Relinking for sqlite3 libraries. + +* Sat Jan 9 2016 Daniel Steiner +- Upgrade to 0.8.0. + +* Wed Jun 17 2015 Fedora Release Engineering - 0.7.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.7.2-2 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Mar 05 2015 Christopher Meng - 0.7.2-1 +- Update to 0.7.2 + +* Tue Nov 25 2014 Christopher Meng - 0.7.1-1 +- Update to 0.7.1 + +* Sun Aug 17 2014 Fedora Release Engineering - 0.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Apr 04 2014 Dan Horák - 0.7.0-2 +- fix build on big endian arches + +* Tue Apr 01 2014 Christopher Meng - 0.7.0-1 +- Update to 0.7.0 + +* Thu Nov 21 2013 Christopher Meng - 0.6.2-1 +- Update to 0.6.2 + +* Thu Sep 12 2013 Christopher Meng - 0.6.1-1 +- Update to 0.6.1 +- Add python BR for environ detection. + +* Sat Aug 03 2013 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu May 09 2013 Christopher Meng - 0.5.1-2 +- Cleanup old stuffs. + +* Fri May 03 2013 Christopher Meng - 0.5.1-1 +- Update to 0.5.1 + +* Fri May 03 2013 Christopher Meng - 0.5.0-2 +- Patch with automake foreign option in order to support aarch64 + +* Sat Apr 27 2013 Christopher Meng - 0.5.0-1 +- Initial Package. diff --git a/fedora/SPECS/mod_security.spec b/fedora/SPECS/mod_security.spec new file mode 100644 index 0000000..20ef2ce --- /dev/null +++ b/fedora/SPECS/mod_security.spec @@ -0,0 +1,362 @@ +%{!?_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: 2.8.0 +Release: 2%{?dist} +License: ASL 2.0 +URL: http://www.modsecurity.org/ +Group: System Environment/Daemons +Source: https://www.modsecurity.org/tarball/%{version}/modsecurity-%{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-%{version} + +%build +%configure --enable-pcre-match-limit=1000000 \ + --enable-pcre-match-limit-recursion=1000000 \ + --with-apxs=%{_httpd_apxs} +# remove rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{_smp_mflags} + +%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 Oct 17 2014 Athmane Madjoudj 2.8.0-2 +- Perl version changed on system. + +* Wed Apr 16 2014 Athmane Madjoudj 2.8.0-1 +- Update to 2.8.0 Final + +* Thu Apr 03 2014 Athmane Madjoudj 2.8.0-0.rc1 +- Update to 2.8.0-RC1 + +* Tue Mar 04 2014 Athmane Madjoudj 2.7.7-6 +- Fix status code in the configuration file (upstream PR #666) + +* Sat Mar 01 2014 Athmane Madjoudj 2.7.7-5 +- Fix rpmlint warnings + +* Thu Feb 27 2014 Athmane Madjoudj 2.7.7-4 +- Add check section + +* Sat Feb 22 2014 Athmane Madjoudj 2.7.7-3 +- Fix bogus date in chanelog + +* Thu Jan 23 2014 Joe Orton - 2.7.7-2 +- fix _httpd_mmn expansion in absence of httpd-devel + +* Thu Dec 19 2013 Athmane Madjoudj 2.7.7-1 +- Update to 2.7.7 +- Fix the spec file since upstream fixed the bugs reported. + +* Tue Dec 17 2013 Athmane Madjoudj 2.7.6-2 +- Add autotools deps + +* Tue Dec 17 2013 Athmane Madjoudj 2.7.6-1 +- Update to 2.7.6 +- Fix spec since upstream will only provide tarball via Github + +* Sat Aug 03 2013 Petr Pisar - 2.7.5-2 +- Perl 5.18 rebuild + +* Tue Jul 30 2013 Athmane Madjoudj 2.7.5-1 +- Update to 2.7.5 + +* Thu Jul 18 2013 Petr Pisar - 2.7.4-2 +- Perl 5.18 rebuild + +* Tue May 28 2013 Athmane Madjoudj 2.7.4-1 +- Update to 2.7.4 +- Drop non required patch + +* Tue May 28 2013 Athmane Madjoudj 2.7.3-2 +- Fix NULL pointer dereference (DoS, crash) (CVE-2013-2765) (RHBZ #967615) +- Fix a possible memory leak. + +* Sat Mar 30 2013 Athmane Madjoudj 2.7.3-1 +- Update to 2.7.3 + +* Fri Jan 25 2013 Athmane Madjoudj 2.7.2-1 +- Update to 2.7.2 +- Update source url in the spec. + +* Thu Nov 22 2012 Athmane Madjoudj 2.7.1-5 +- Use conditional for loading mod_unique_id (rhbz #879264) +- Fix syntax errors on httpd 2.4.x by using IncludeOptional (rhbz #879264, comment #2) + +* Mon Nov 19 2012 Peter Vrabec 2.7.1-4 +- mlogc subpackage is not provided on RHEL7 + +* Thu Nov 15 2012 Athmane Madjoudj 2.7.1-3 +- Add some missing directives RHBZ #569360 +- Fix multipart/invalid part ruleset bypass issue (CVE-2012-4528) + (RHBZ #867424, #867773, #867774) + +* Thu Nov 15 2012 Athmane Madjoudj 2.7.1-2 +- Fix mod_security.conf + +* Thu Nov 15 2012 Athmane Madjoudj 2.7.1-1 +- Update to 2.7.1 +- Remove libxml2 build patch (upstreamed) +- Update spec since upstream moved to github + +* Thu Oct 18 2012 Athmane Madjoudj 2.7.0-2 +- Add a patch to fix failed build against libxml2 >= 2.9.0 + +* Wed Oct 17 2012 Athmane Madjoudj 2.7.0-1 +- Update to 2.7.0 + +* Fri Sep 28 2012 Athmane Madjoudj 2.6.8-1 +- Update to 2.6.8 + +* Wed Sep 12 2012 Athmane Madjoudj 2.6.7-2 +- Re-add mlogc sub-package for epel (#856525) + +* Sat Aug 25 2012 Athmane Madjoudj 2.6.7-1 +- Update to 2.6.7 + +* Sat Aug 25 2012 Athmane Madjoudj 2.6.7-1 +- Update to 2.6.7 + +* Fri Jul 20 2012 Fedora Release Engineering - 2.6.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 22 2012 Peter Vrabec - 2.6.6-2 +- mlogc subpackage is not provided on RHEL + +* Thu Jun 21 2012 Peter Vrabec - 2.6.6-1 +- upgrade + +* Mon May 7 2012 Joe Orton - 2.6.5-3 +- packaging fixes + +* Fri Apr 27 2012 Peter Vrabec 2.6.5-2 +- fix license tag + +* Thu Apr 05 2012 Peter Vrabec 2.6.5-1 +- upgrade & move rules into new package mod_security_crs + +* Fri Feb 10 2012 Petr Pisar - 2.5.13-3 +- Rebuild against PCRE 8.30 +- Do not install non-existing files + +* Fri Jan 13 2012 Fedora Release Engineering - 2.5.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue May 3 2011 Michael Fleming - 2.5.13-1 +- Newer upstream version + +* Wed Jun 30 2010 Michael Fleming - 2.5.12-3 +- Fix log dirs and files ordering per bz#569360 + +* Thu Apr 29 2010 Michael Fleming - 2.5.12-2 +- Fix SecDatadir and minimal config per bz #569360 + +* Sat Feb 13 2010 Michael Fleming - 2.5.12-1 +- Update to latest upstream release +- SECURITY: Fix potential rules bypass and denial of service (bz#563576) + +* Fri Nov 6 2009 Michael Fleming - 2.5.10-2 +- Fix rules and Apache configuration (bz#533124) + +* Thu Oct 8 2009 Michael Fleming - 2.5.10-1 +- Upgrade to 2.5.10 (with Core Rules v2) + +* Sat Jul 25 2009 Fedora Release Engineering - 2.5.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Mar 12 2009 Michael Fleming 2.5.9-1 +- Update to upstream release 2.5.9 +- Fixes potential DoS' in multipart request and PDF XSS handling + +* Wed Feb 25 2009 Fedora Release Engineering - 2.5.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Dec 29 2008 Michael Fleming 2.5.7-1 +- Update to upstream 2.5.7 +- Reinstate mlogc + +* Sat Aug 2 2008 Michael Fleming 2.5.6-1 +- Update to upstream 2.5.6 +- Remove references to mlogc, it no longer ships in the main tarball. +- Link correctly vs. libxml2 and lua (bz# 445839) +- Remove bogus LoadFile directives as they're no longer needed. + +* Sun Apr 13 2008 Michael Fleming 2.1.7-1 +- Update to upstream 2.1.7 + +* Sat Feb 23 2008 Michael Fleming 2.1.6-1 +- Update to upstream 2.1.6 (Extra features including SecUploadFileMode) + +* Tue Feb 19 2008 Fedora Release Engineering - 2.1.5-3 +- Autorebuild for GCC 4.3 + +* Sun Jan 27 2008 Michael Fleming 2.1.5-2 +- Update to 2.1.5 (bz#425986) +- "blocking" -> "optional_rules" per tarball ;-) + + +* Thu Sep 13 2007 Michael Fleming 2.1.3-1 +- Update to 2.1.3 +- Update License tag per guidelines. + +* Mon Sep 3 2007 Joe Orton 2.1.1-3 +- rebuild for fixed 32-bit APR (#254241) + +* Wed Aug 29 2007 Fedora Release Engineering - 2.1.1-2 +- Rebuild for selinux ppc32 issue. + +* Tue Jun 19 2007 Michael Fleming 2.1.1-1 +- New upstream release +- Drop ASCIIZ rule (fixed upstream) +- Re-enable protocol violation/anomalies rules now that REQUEST_FILENAME + is fixed upstream. + +* Sun Apr 1 2007 Michael Fleming 2.1.0-3 +- Automagically configure correct library path for libxml2 library. +- Add LoadModule for mod_unique_id as the logging wants this at runtime + +* Mon Mar 26 2007 Michael Fleming 2.1.0-2 +- Fix DSO permissions (bz#233733) + +* Tue Mar 13 2007 Michael Fleming 2.1.0-1 +- New major release - 2.1.0 +- Fix CVE-2007-1359 with a local rule courtesy of Ivan Ristic +- Addition of core ruleset +- (Build)Requires libxml2 and pcre added. + +* Sun Sep 3 2006 Michael Fleming 1.9.4-2 +- Rebuild +- Fix minor longstanding braino in included sample configuration (bz #203972) + +* Mon May 15 2006 Michael Fleming 1.9.4-1 +- New upstream release + +* Tue Apr 11 2006 Michael Fleming 1.9.3-1 +- New upstream release +- Trivial spec tweaks + +* Wed Mar 1 2006 Michael Fleming 1.9.2-3 +- Bump for FC5 + +* Fri Feb 10 2006 Michael Fleming 1.9.2-2 +- Bump for newer gcc/glibc + +* Wed Jan 18 2006 Michael Fleming 1.9.2-1 +- New upstream release + +* Fri Dec 16 2005 Michael Fleming 1.9.1-2 +- Bump for new httpd + +* Thu Dec 1 2005 Michael Fleming 1.9.1-1 +- New release 1.9.1 + +* Wed Nov 9 2005 Michael Fleming 1.9-1 +- New stable upstream release 1.9 + +* Sat Jul 9 2005 Michael Fleming 1.8.7-4 +- Add Requires: httpd-mmn to get the appropriate "module magic" version + (thanks Ville Skytta) +- Disabled an overly-agressive rule or two.. + +* Sat Jul 9 2005 Michael Fleming 1.8.7-3 +- Correct Buildroot +- Some sensible and safe rules for common apps in mod_security.conf + +* Thu May 19 2005 Michael Fleming 1.8.7-2 +- Don't strip the module (so we can get a useful debuginfo package) + +* Thu May 19 2005 Michael Fleming 1.8.7-1 +- Initial spin for Extras diff --git a/fedora/SPECS/nagios-plugins-own.spec b/fedora/SPECS/nagios-plugins-own.spec new file mode 100644 index 0000000..9c1a150 --- /dev/null +++ b/fedora/SPECS/nagios-plugins-own.spec @@ -0,0 +1,146 @@ +# define svn plugins release this will be checked out: +%define svnrel 954 +# subversion repo link: +%define svnlink https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/ +# name of nagios: +%define nag nagios + +Name: nagios-plugins-own +Version: 1.0 +Release: %{svnrel}%{?dist} +Summary: Nagios/Icinga own plugins + +License: GPL +URL: http://www.daniel-steiner.org/ +# cd ~/svn; svn co --username sda https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/ +# cd ~/svn; svn up +# tar --exclude=templates --exclude=.svn -czf ../rpmbuild/SOURCES/nagios-952.tgz nagios +Source0: nagios-%{svnrel}.tgz + +%package netbackup +Summary: Nagios Plugins - Netbackup +Group: Applications/System + +%description netbackup + +%package backuppc +Summary: Nagios Plugins - BackupPC +Group: Applications/System + +%description backuppc + +%package mysql +Summary: Nagios Plugins - MySQL +Group: Applications/System + +%description mysql + +%package hw +Summary: Nagios Plugins - Hardware +Group: Applications/System + +%description hw + +%package all +Summary: Nagios Plugins - All package +Group: Applications/System +Requires: %{name}, %{name}-hw, %{name}-backuppc, %{name}-netbackup, %{name}-mysql + +%description all + + + +%define idir %{_libdir}/%{nag}/plugins + +%description +Mostly self written Nagioa/Icinga plugins. + +%prep +%setup -q -n nagios + +%install +%{__install} -d %{buildroot}%{idir} +%{__install} -D * %{buildroot}%{idir}/ + +%files +%defattr(0755,root,root,0755) +%{idir}/check-iotop.pl +%{idir}/check-swap-io.pl +%{idir}/check_access_log.pl +%{idir}/check_apache-perf.pl +%{idir}/check_apache2.sh +%{idir}/check_apache_log_pattern.pl +%{idir}/check_apcext.pl +%{idir}/check_arch_status.pl +%{idir}/check_bind.sh +%{idir}/check_cpu +%{idir}/check_cpu.pl +%{idir}/check_cpu_stat.pl +%{idir}/check_esx3.pl +%{idir}/check_events.pl +%{idir}/check_fail2ban.pl +%{idir}/check_http_content.pl +%{idir}/check_icingastats +%{idir}/check_insight_log2.sh +%{idir}/check_iotop.py +%{idir}/check_linux_bonding.pl +%{idir}/check_linux_procstat.pl +%{idir}/check_log3.pl +%{idir}/check_log_pattern.pl +%{idir}/check_mem_uses.pl +%{idir}/check_memcached.pl +%{idir}/check_mod_security.pl +%{idir}/check_multipath.sh +%{idir}/check_os_updates.sh +%{idir}/check_procs.pl +%{idir}/check_rsync_status.pl +%{idir}/check_squid +%{idir}/check_squid.pl +%{idir}/check_squidwatch-status.pl +%{idir}/check_ssl_cert +%{idir}/check_svn.py +%{idir}/check_tape_drives.sh +%{idir}/check_tapes_reserved.pl +%{idir}/check_unix_open_fds.pl +%{idir}/check_updates.pl +%{idir}/check_webpage.rb +%{idir}/config-del.pl +%{idir}/create-hosts-files.sh +%{idir}/get-esx-luns.pl +%{idir}/stat_net.pl +%{idir}/mrtg-nimbus.conf +%{idir}/mrtg-ping-probe.pl + +%files netbackup +%defattr(0755,root,root,0755) +%{idir}/check_nb_basicdisks.pl +%{idir}/check_nb_errs-0.3.pl +%{idir}/check_nb_jobs.pl +%{idir}/check_nb_jukebox-0.2.pl +%{idir}/check_nb_queue-0.1.pl +%{idir}/check_nb_volumes.pl + +%files backuppc +%defattr(0755,root,root,0755) +%{idir}/check_backuppc + +%files mysql +%defattr(0755,root,root,0755) +%{idir}/check_mysql-wrapper.pl +%{idir}/check_mysqld.pl +%{idir}/mysql_slave_replication.pl + +%files hw +%defattr(0755,root,root,0755) +%{idir}/3warecheck.pl +%{idir}/hpsmartcheck.pl +%{idir}/cciss-vol-check.pl +%{idir}/check_cciss +%{idir}/check_uniflair.pl +%{idir}/switches.conf + +%files all + +%changelog +* Sat Jan 11 2014 +- New package. diff --git a/fedora/SPECS/nconf.spec b/fedora/SPECS/nconf.spec new file mode 100644 index 0000000..9cf308e --- /dev/null +++ b/fedora/SPECS/nconf.spec @@ -0,0 +1,76 @@ +Name: nconf +Version: 1.3.1 +Release: 1%{?dist} +Summary: Nagios/Icinga configuration webinterface + +License: GPL +URL: http://www.nconf.org +Source0: nconf-%{version}.tgz +Source1: nconf.conf +Source2: mysql.php +BuildArch: noarch + + +Requires: icinga + +%define idir %{_datadir}/%{name} + +%description +NConf is a web-based tool which allows users to manage the complete configuration of their Nagios setup. +Is is specifically aimed at large environments, but can naturally also be used for small Nagios installations. +One of the main benefits is that NConf allows users to define templates and presets, +which can be applied when adding hosts. A host-preset contains all services to be added to a host, +with all commands linked and all default values already set. It also contains the host-alive-check +to be applied to the new host. All a user must do after adding a host is to tweak certain parameters, if necessary. + +A host is always linked to a collector. When the config is generated, +all hosts linked to the same collector will be written to a file, +including all their services and additional dependencies. +Hosts not assigned to the same collector will be written to a different config file. +This way, each collector will recieve its own set of config files. +It will only monitor hosts assigned to it, all other information is disregarded. +This increases performance. Information about all hosts is summarized in the monitor config. +Performance is not an issue here, since the monitor server does not do any active checking. + +%prep +%setup -q -n %{name}-%{version} + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__install} -d %{buildroot}%{idir} +%{__install} -d %{buildroot}%{_sysconfdir}/httpd/conf.d +cp -r */ %{buildroot}%{idir} +cp -r *.php %{buildroot}%{idir} +cp %{S:1} %{buildroot}%{_sysconfdir}//httpd/conf.d/%{name}.conf +cp %{S:2} %{buildroot}%{idir}/config +rm %{buildroot}%{idir}/*/.gitignore + + +%files +%defattr(0644,root,root,0755) +%doc README CHANGELOG LICENSE +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%config(noreplace) %{idir}/config/mysql.php +%{idir}/*.php +%{idir}/INSTALL +%{idir}/UPDATE +%{idir}/ADD-ONS +%{idir}/bin +%{idir}/config.orig +%{idir}/design_templates +%{idir}/img +%{idir}/include +%dir %attr(0755,apache,apache) %{idir}/config +%dir %attr(0755,apache,apache) %{idir}/output +%dir %attr(0755,apache,apache) %{idir}/static_cfg +%dir %attr(0755,apache,apache) %{idir}/temp + + + +%changelog +* Sat Dec 7 2013 +- New package. diff --git a/fedora/SPECS/owncloud-files.spec b/fedora/SPECS/owncloud-files.spec new file mode 100644 index 0000000..b3af2d0 --- /dev/null +++ b/fedora/SPECS/owncloud-files.spec @@ -0,0 +1,354 @@ +# +# spec file for package owncloud-files +# +# Copyright (c) 2012-2016 ownCloud, Inc. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes, issues or comments via http://github.com/owncloud/ +# + +# name used as apache alias and topdir for php code. +%define owncloud owncloud + +# CAUTION: keep in sync with debian.rules +%define apache_serverroot /var/www/html +%define apache_confdir /etc/httpd/conf.d +%define oc_user apache +%define oc_group apache + +# CAUTION: keep in sync with debian.rules +%define oc_dir %{apache_serverroot}/%{owncloud} +%define oc_config_dir %{oc_dir}/config +%define oc_data_dir %{oc_dir}/data +%define oc_data_pdir %{oc_dir} + +Name: owncloud-files + +# Downloaded from http://download.owncloud.com/internal/8.2.1/owncloud-complete-8.2.1.tar.bz2 +# Downloaded from http://download.owncloud.com/internal/8.2.2RC1/owncloud-complete-8.2.2RC1.tar.bz2 + +## define prerelease % nil, if this is *not* a prerelease. +%define prerelease %nil +%define base_version 9.0.0 + +%if 0%{?centos_version} == 600 || 0%{?fedora_version} || "%{prerelease}" == "" +# For beta and rc versions we use the ~ notation, as documented in +# http://en.opensuse.org/openSUSE:Package_naming_guidelines +Version: %{base_version} +%if "%{prerelease}" == "" +Release: 1.1 +%else +Release: 0.1.1.%{prerelease} +%endif +%else +Version: %{base_version}~%{prerelease} +Release: 1.1 +%endif + +# http://owncloud:owncloud42@download.owncloud.com/internal/8.2.2/owncloud-complete-8.2.2.tar.bz2 +Source0: http://download.owncloud.org/community/owncloud-9.0.0.tar.bz2 +Source1: apache_conf_default +Source2: README +Source4: README.packaging +Source5: disable-updatechecker.config.php +Url: http://www.owncloud.org +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Summary: The ownCloud Server - Private file sync and share server +License: AGPL-3.0 and MIT +Group: Productivity/Networking/Web/Utilities + +%if 0%{?suse_version} +BuildRequires: fdupes +Recommends: owncloud-deps +%endif + +%if "%{?_repository}" == "openSUSE_Tumbleweed" +# disable rpmlint for Tumbleweed while it is broken. +# It has random errors like these: +# IOError: [Errno 2] No such file or directory: '/tmp/rpmlint.owncloud-ee-base-8.2.2-1.1.noarch.rpm.zFc3ft/usr/share/owncloud/apps/files_external/tests/env/stop-smb-silvershell.sh' + +BuildRequires: -rpmlint -rpmlint-mini +%endif + +Obsoletes: owncloud < 8.99.99 +Obsoletes: owncloud-server < 8.99.99 +Obsoletes: owncloud-config-apache < 8.99.99 +Obsoletes: owncloud < 8.99.99 + +%description +ownCloud Server provides you a private file sync and share +cloud. Host this server to easily sync business or private documents +across all your devices, and share those documents with other users of +your ownCloud server on their devices. + +This package installs as follows: +oc_dir: %{oc_dir} +oc_data_dir: %{oc_data_dir} +oc_config_dir: %{oc_config_dir} + +ownCloud - Your Cloud, Your Data, Your Way! www.owncloud.org + +##################################################### + +%prep +%setup -q -n owncloud +cp %{SOURCE1} . +cp %{SOURCE2} . +cp %{SOURCE4} . +#%%patch0 -p0 + +## remove .bower.json .bowerrc .gitattributes .gitmodules +# find . -name .bower\* -print -o -name .git\* -print | xargs -r rm -rf + +%build + +%install +# no server side java code contained, alarm is false +export NO_BRP_CHECK_BYTECODE_VERSION=true +idir=$RPM_BUILD_ROOT/%{oc_dir} +mkdir -p $RPM_BUILD_ROOT/%{oc_dir} +mkdir -p $RPM_BUILD_ROOT/%{oc_dir}/etc +mkdir -p $RPM_BUILD_ROOT/%{oc_data_dir} +mkdir -p $RPM_BUILD_ROOT/%{oc_config_dir} +mkdir -p $RPM_BUILD_ROOT/%{oc_dir}/core/skeleton + +cp -aRf .htaccess .user.ini * $idir +rm -f $idir/debian.*{install,rules,control} +rm -f $idir/README{,.SELinux,.packaging} +sed -e 's@/var/www/owncloud@%{oc_dir}/owncloud@' < $idir/apache_conf_default > owncloud-config-apache.conf.default +rm -f $idir/apache_conf_default + +## https://github.com/owncloud/core/issues/22257 +# disable-updatechecker.config.php +cp %{SOURCE5} $idir/config/ + +## can we do proper groups user during install? No, we are in a build enironment, non-root user. +# find $idir/apps $idir/data $idir/config -print0 | xargs -0 chown % {oc_user}:% {oc_group} +# find $idir/apps $idir/data $idir/config -type d -print0 | xargs -0 chmod 0775 +# find $idir/apps $idir/data $idir/config -type f -print0 | xargs -0 chmod 0664 + + +%if 0%{?suse_version} +# link duplicate doc files +%fdupes -s $RPM_BUILD_ROOT/%{oc_dir} +%endif + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(-,root,root,-) +%doc README README.packaging owncloud-config-apache.conf.default + +# is there any security to be gained here? Easier to chown everthing to % {oc_user} +%defattr(0644,root,%{oc_group},0755) +%attr(0755,%{oc_user},%{oc_group}) %{oc_dir}/occ +%attr(0775,%{oc_user},%{oc_group}) %{oc_dir}/apps +%attr(0775,%{oc_user},%{oc_group}) %{oc_data_dir} +%attr(0775,%{oc_user},%{oc_group}) %{oc_config_dir} +# BUMMER: exclude excludes globally, not just below. It cannot be used to avoid duplicate warnings? +# FIXME: only cure against the duplicate warnings is a -f file-list +%{oc_dir} + +%changelog +* Tue Mar 8 2016 jw@owncloud.com +- update to 9.0.0 +* Mon Mar 7 2016 jw@owncloud.com +- update to 9.0.0~RC3 +* Sat Mar 5 2016 jw@owncloud.com +- update to 9.0.0~RC2 +* Thu Mar 3 2016 jw@owncloud.com +- retain dotfiles https://github.com/owncloud/core/issues/22803 +* Thu Mar 3 2016 jw@owncloud.com +- fix https://github.com/owncloud/core/issues/22804 +* Wed Mar 2 2016 jw@owncloud.com +- update to 9.0.0~RC1 +* Wed Feb 24 2016 jw@owncloud.com +- fixed default file ownership in RPM to be apache. + CentOS_7 just failed with unwritable config folder again. +* Wed Feb 24 2016 jw@owncloud.com +- obsoletes in spec changed to < 8.99.99 +* Fri Feb 19 2016 jw@owncloud.com +- survive integrity checks. see ee:9.0:testing for details +* Fri Feb 19 2016 jw@owncloud.com +- update to 9.0.0 beta2 +* Tue Feb 16 2016 jw@owncloud.com +- apps, data, config directories had no x-bits +* Fri Feb 12 2016 jw@owncloud.com +- added disable-updatechecker.config.php -- this is the correct solution for + https://github.com/owncloud/core/issues/22257 +* Fri Feb 12 2016 jw@owncloud.com +- help https://github.com/owncloud/core/issues/22257 +* Thu Feb 11 2016 jw@owncloud.com +- survive bad broken rpmlint on openSUSE_Tumbleweed +* Thu Feb 11 2016 jw@owncloud.com +- initial 9.0 setup: owncloud-enterprise-files +- must not include .gitkeep or .gitignore files. +* Thu Feb 4 2016 jw@owncloud.com +- made file system layout compatible with tar/zip installations, + preparing for owncloud-deps sub-package. +* Tue Dec 22 2015 jw@owncloud.com +- Updated to 8.2.2 +* Wed Dec 16 2015 jw@owncloud.com +- Updated to 8.2.2~RC1 +* Fri Dec 4 2015 jw@owncloud.com +- typo in etc/owncloud-config-apache.conf.default fixed. + Thanks JP. +* Thu Dec 3 2015 jw@owncloud.com +- New package: owncloud-ee-base without dependencies. +- Replaces, Conflicts, Obsoletes all other owncloud-* packages << 8.2.2 +- improved apache_config_default +- dropped htaccess re-added. +* Tue Nov 17 2015 jenkins@owncloud.com +- Update to version 8.2.1 +* Tue Nov 17 2015 jenkins@owncloud.com +- Update to version 8.2.1~RC4 +* Fri Nov 13 2015 jw@owncloud.com +- Update to version 8.2.1~RC3 +- added app-password_policy subpackage +* Wed Nov 11 2015 jenkins@owncloud.com +- Update to version 8.2.1~RC2 +* Wed Nov 4 2015 jw@owncloud.com +- Update to version 8.2.1~RC1 +* Fri Sep 18 2015 jw@owncloud.com +- Update to version 8.2~beta1 +* Mon Sep 14 2015 jw@owncloud.com +- Require owncloud-server, instead of a virtual owncloud-enterprise-server. +* Fri Sep 11 2015 jw@owncloud.com +- Update to version 8.1.3 +* Fri Sep 4 2015 jw@owncloud.com +- Updated ownCloudServerAdminManual.pdf +* Wed Sep 2 2015 jw@owncloud.com +- Update to version 8.1.2 +* Sun Aug 30 2015 jw@owncloud.com +- Update to version 8.1.2~RC1 +* Fri Aug 14 2015 jw@owncloud.com +- softwarecollections rh-scl have renamed their packages: rh-php56-php +* Sat Aug 8 2015 jw@owncloud.com +- Update to version 8.1.1 +* Sat Aug 8 2015 jw@owncloud.com +- RPM: Do not hard require mysql locally. That is not realistic for enterprise. + DEB does not have that requirement anyway. +- Using %%{ocphp} to select the correct php version. +- fixed https://github.com/owncloud/core/issues/16132 +- Updated ownCloudServerAdminManual.pdf +* Mon Aug 3 2015 jw@owncloud.com +- Update to version 8.1.1~RC1 +* Fri Jul 24 2015 jw@owncloud.com +- Update to version 8.1.1~beta1 +* Mon Jul 13 2015 jw@owncloud.com +- Updated ownCloudServerAdminManual.pdf +* Fri Jul 3 2015 jw@owncloud.com +- Update to version 8.1.0 +* Wed Jul 1 2015 jw@owncloud.com +- Version number patched back to 3 digits 8.1.0~RC2 +* Wed Jul 1 2015 jw@ownCloud.com +- Update to version 8.1~RC2 +* Tue Jun 2 2015 jw@owncloud.com +- fixed https://github.com/owncloud/core/issues/16132 +* Tue May 19 2015 jw@owncloud.com +- Updated to 8.1.0~Beta2 +* Mon May 11 2015 jw@owncloud.com +- https://github.com/owncloud/core/issues/16204 + Fix install on CentOS_6@SCL-PHP54 +* Fri May 8 2015 jw@owncloud.com +- Updated to 8.1.0~Beta1 +* Thu Apr 23 2015 jw@owncloud.com +- Updated to 8.1.0~Alpha2 + - Added app: files_drop + - Removed app: search_elastic +* Thu Apr 16 2015 jw@owncloud.com +- Updated to 8.1.0~Alpha1 + - Added app: search_elastic +* Thu Apr 16 2015 jw@owncloud.com +- Update to 8.0.3 RC2 +* Sat Mar 28 2015 jw@owncloud.com +- Release "8.0.3" April 6. 2015 + - Fix several Constrain Violation Exceptions + - Fix misleading Maintenance mode message + - Timezone fixes for countries with .05 and 0.75 offsets + - Fix usage of default share folder location + - Improved MSSQL compatibility + - Reenable trashbin after failed rename + - Fix disabling of APCu + - Do not show update notification on mobile + - Fix "Only variables should be passed by reference" error log spam + - Add timeout to curl + - Makes repair errors and warnings visible for the user when + - Upgrading on the command line or in the web UI + - Cron shall not operate in case we are in maintenance mode + - Disable the cache updater when doing the encryption migration + - Fix "Error while updating app" error + - Internal Server Error after attempting to do "occ files:scan" +* Mon Mar 16 2015 jw@owncloud.com +- update to 8.0.2 +- https://github.com/owncloud/enterprise/issues/560 + * Preinstall check for duplicate installations done. + * Migration instructions in README.symlink done. + * adopted the DEB upgrade detection algorithm for RPM. +- https://github.com/owncloud/enterprise/issues/573 + * fixed also for debian: virtual Provides did not work with versioned Depends. +* Thu Mar 5 2015 jw@owncloud.com +- removed ownCloudUserManual.pdf here to avoid a file conflict with owncloud-server +* Thu Mar 5 2015 jw@owncloud.com +- updated to 8.0.1 Mar 4, 22:41h +* Wed Mar 4 2015 jw@owncloud.com +- Updated to todays rebuild of 8.0.1 tar ball. + Added latest Server and User PDFs. +* Wed Mar 4 2015 jw@owncloud.com + * Fixing https://github.com/owncloud/enterprise/issues/552 + better. Do not Require clamav for CentOS and friends. + Recommend for openSUSE. Describe the dependency of files_antivirus in the README. +* Tue Mar 3 2015 jw@owncloud.com +- fixed https://github.com/owncloud/enterprise/issues/552 + clamav was the last one missing +- fixed https://github.com/owncloud/enterprise/issues/549 + multiple missing dependencies added. We are now more on the side that build or + install fails instead of manual post processing. +* Mon Mar 2 2015 jw@owncloud.com +- updated firewall app. +* Mon Mar 2 2015 jw@owncloud.com +- Match permissions on owncloud, data, themes, config, apps folders + (they exist in both, owncloud and owncloud-enterprise* packages.) + CentOS-7 is extremely picky: User, group, and modes must match exactly. +* Mon Mar 2 2015 jw@owncloud.com +- update to 8.0.1 + ownCloud app files_drop no longer included. + ownCloud app search_elastic dropped. +* Wed Feb 18 2015 jw@owncloud.com +- enterprise version need not be exaclty the same as server version +* Tue Feb 17 2015 jw@owncloud.com +- updated to 8.0.0 RC2 +* Sat Feb 7 2015 jw@owncloud.com +- Require owncloud-server-core instead of owncloud-server +* Mon Feb 2 2015 jw@owncloud.com +- updated to 8.0.0 RC1 +* Fri Jan 30 2015 jw@owncloud.com +- make apps directory writable by oc_user +* Thu Jan 29 2015 jw@owncloud.com +- added all the RHEL_6_PHP5* build targets. +* Thu Jan 29 2015 jw@owncloud.com +- owncloud-enterprise-theme must not be build dependency, but must be + a runtime dependency for owncloud-enterprise. Exception to the rule! +- generated deb metafiles for all subpackages with + obs_check_deb_spec.sh +* Thu Jan 29 2015 jw@owncloud.com +- first completed specfile. +- fixed garbage filter .bower and .git . +- opensuse needs dir entries in %%files for top and top/apps, + all others dont. +* Wed Jan 28 2015 jw@owncloud.com +- adapted isv:ownCloud:community:8.0/owncloud/owncloud.spec + to become owncloud-enterprise.spec here. +- removed all unnecessary packages, that are now subpackages here. +* Thu Jan 8 2015 jw@owncloud.com +- initial draught for ownCloud 8 diff --git a/fedora/SPECS/owncloud.spec b/fedora/SPECS/owncloud.spec new file mode 100644 index 0000000..85aacdd --- /dev/null +++ b/fedora/SPECS/owncloud.spec @@ -0,0 +1,305 @@ +# +# spec file for package owncloud +# +# Copyright (c) 2012-2016 ownCloud, Inc. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes, issues or comments via http://github.com/owncloud/ +# + +Name: owncloud + +## define prerelease % nil, if this is *not* a prerelease. +%define prerelease %nil +%define base_version 9.0.0 +## don't enable support_php7 for now, it takes precendence over scl_php54 +%define support_php7 0 + +%if 0%{?centos_version} == 600 || 0%{?fedora_version} || "%{prerelease}" == "" +# For beta and rc versions we use the ~ notation, as documented in +# http://en.opensuse.org/openSUSE:Package_naming_guidelines +%define oc_version %{base_version} +%if "%{prerelease}" == "" +%define oc_release 0 +%else +%define oc_release 0...%{prerelease} +%endif +%else +%define oc_version %{base_version}~%{prerelease} +%define oc_release 0 +%endif + +Version: %{oc_version} +Release: 1.1 + +Url: http://www.owncloud.org +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Summary: The server - private file sync and share server +License: AGPL-3.0 and MIT +Group: Productivity/Networking/Web/Utilities +# No Source0: needed when there are no prep setup build sections. + +Requires: owncloud-files +Requires: owncloud-deps + +%description +ownCloud Server provides you a private file sync and share +cloud. Host this server to easily sync business or private documents +across all your devices, and share those documents with other users of +your ownCloud server on their devices. + +ownCloud - Your Cloud, Your Data, Your Way! www.owncloud.org + +##################################################### + +%if 0%{?rhel} == 600 || 0%{?rhel_version} == 600 || 0%{?centos_version} == 600 +%define statedir /var/run +%else +%define statedir /run +%endif + +# CAUTION: keep in sync with debian.rules +### apache variables +%if 0%{?suse_version} +%define nginx_confdir /etc/nginx/conf.d +%define apache_serverroot /srv/www/htdocs +%define apache_confdir /etc/apache2/conf.d +%define oc_user wwwrun +%define oc_group www +%else +%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version} +%define nginx_confdir /etc/nginx/conf.d +%define apache_serverroot /var/www/html +%define apache_confdir /etc/httpd/conf.d +%define oc_user apache +%define oc_group apache +%define __jar_repack 0 +%else +%define nginx_confdir /etc/nginx/conf.d +%define apache_serverroot /var/www +%define apache_confdir /etc/httpd/conf.d +%define oc_user www +%define oc_group www +%endif +%endif +## only for backwards compatibility with our 7.0 package layout. +%define oc_apache_web_dir %{apache_serverroot}/owncloud + +# CAUTION: keep in sync with debian.rules +## traditional layout +%define oc_dir %{oc_apache_web_dir} +%define oc_config_dir %{oc_apache_web_dir}/config +%define oc_data_dir %{oc_apache_web_dir}/data +%define oc_data_pdir %{oc_apache_web_dir} +%define oc_doc_dir /usr/share/doc/owncloud + +%define ocphp php +%define ocphp_bin /usr/bin +%define ocphp_deps_name owncloud-deps-php5 +%define ochttpd httpd + +%if "%_repository" == "CentOS_6_SCL_PHP54" || "%_repository" == "RHEL_6_SCL_PHP54" +%define ocphp php54-php +%define ocphp_bin /opt/rh/php54/root/usr/bin +%define ocphp_deps_name owncloud-deps-scl-php54 +%define ochttpd httpd +%endif + +%if "%_repository" == "CentOS_6_SCL_PHP55" || "%_repository" == "RHEL_6_SCL_PHP55" +%define ocphp php55-php +%define ocphp_bin /opt/rh/php55/root/usr/bin +%define ocphp_deps_name owncloud-deps-scl-php55 +%define ochttpd httpd24-httpd +%endif + +%if "%_repository" == "CentOS_6_SCL_PHP56" || "%_repository" == "RHEL_6_SCL_PHP56" +%define ocphp rh-php56-php +%define ocphp_bin /opt/rh/php56/root/usr/bin +%define ocphp_deps_name owncloud-deps-scl-php56 +%define ochttpd httpd24-httpd +%endif + +##################################################### + +%package -n %{ocphp_deps_name} +Provides: owncloud-deps + +Requires: curl +# apps/user_ldap +Requires: %{ocphp}-ldap + +%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version} +Requires: %{ochttpd} +Requires: sqlite +Requires: %{ocphp} >= 5.4.0 +Requires: %{ocphp}-json %{ocphp}-mbstring %{ocphp}-process %{ocphp}-xml %{ocphp}-zip +# core#13357, core#13944 +Requires: %{ocphp}-posix %{ocphp}-gd +# https://github.com/owncloud/core/issues/11576 +# at CentOS6, we need policycoreutils-python for semanage. +Requires: policycoreutils-python +# at centOS7 to avoid a blank page. Class 'PDO' not found at \/var\/www\/html\/owncloud\/3rdparty\/doctrine +Requires: %{ocphp}-pdo +%endif + +%if 0%{?suse_version} +Requires: php-fileinfo +Requires: php5 >= 5.4.0 php5-mbstring php5-zip php5-json php5-posix php5-curl php5-gd php5-ctype php5-xmlreader php5-xmlwriter php5-zlib php5-pear php5-iconv php5-pdo +Requires: apache2 apache2-mod_php5 +%endif + +Summary: Dependencies for php5 +%description -n %{ocphp_deps_name} +%{summary}. + + +##################################################### + +%package -n owncloud-deps-php7 +Provides: owncloud-deps +Requires: php7 +Summary: Dependencies for php7 +%description -n owncloud-deps-php7 +%{summary}. + +##################################################### + +%prep +# setup -q -n owncloud + +%build +echo build + +%install +echo install + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%pre -n %{ocphp_deps_name} +# avoid fatal php errors, while we are changing files +# https://github.com/owncloud/core/issues/10953 +# +# https://github.com/owncloud/core/issues/12125 +# We put the existing owncloud in maintenance mode, +# apply our changes, reload (not restart!) apache, then +# exit maintenance mode. + +## server upgrade +if [ $1 -eq 1 ]; then + echo "%{name} pre-install: First install starting" +else + echo "%{name} pre-install: installing upgrade ..." +fi +# https://github.com/owncloud/core/issues/12125 +if [ -x %{ocphp_bin}/php -a -s %{oc_dir}/config/config.php ]; then + echo "%{name} pre-install: occ maintenance:mode --on" + su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --on" || true + echo yes > %{statedir}/occ_maintenance_mode_during_owncloud_install +fi + + + +%post -n %{ocphp_deps_name} +if [ -f /etc/sysconfig/apache2 ]; then +%if 0%{?suse_version} +## FIXME: use a2enmod instead?? +# a2enmod php5 +# a2enmod rewrite +## make sure php5 is not in APACHE_MODULES, so that we don't create dups. +perl -pani -e 's@^(APACHE_MODULES=".*)\bphp5\b@$1@' /etc/sysconfig/apache2 +# add php5 to APACHE_MODULES +perl -pani -e 's@^(APACHE_MODULES=")@${1}php5 @' /etc/sysconfig/apache2 +%endif + : +fi + +# install our apache config +if [ -f "%{oc_doc_dir}*/owncloud-config-apache.conf.default" ]; then + echo "install owncloud.conf into apache, if missing" + if [ -d %{apache_confdir} -a ! -f %{apache_confdir}/owncloud.conf ]; then + cp %{oc_doc_dir}*/owncloud-config-apache.conf.default %{apache_confdir}/owncloud.conf + chown root:root %{apache_confdir}/owncloud.conf + chmod 644 %{apache_confdir}/owncloud.conf + fi +fi + +if [ ! -s %{statedir}/need_apache_reload_after_owncloud_install ]; then +%if 0%{?suse_version} + (service apache2 status | grep running > %{statedir}/need_apache_reload_after_owncloud_install) || true +%endif +%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version} + (service %{ochttpd} status | grep running > %{statedir}/need_apache_reload_after_owncloud_install) || true +%endif +fi + +if [ -s %{statedir}/need_apache_reload_after_owncloud_install ]; then + echo "%{name} post-install: apache: Reloading" +%if 0%{?suse_version} + service apache2 reload || true +%endif +%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version} + service %{ochttpd} status && service %{ochttpd} reload || service %{ochttpd} start || true +%endif +fi +rm -f %{statedir}/need_apache_reload_after_owncloud_install + +# must ignore errors with e.g. '|| true' or we die in openSUSEs horrible post build checks. +# https://github.com/owncloud/core/issues/12125 needed occ calls. +# https://github.com/owncloud/core/issues/17583 correct occ usage. +if [ -s %{statedir}/occ_maintenance_mode_during_owncloud_install ]; then + # https://github.com/owncloud/core/pull/19508 + # https://github.com/owncloud/core/pull/19661 + echo "Leaving server in maintenance mode. Please run occ upgrade manually." + echo "" + echo "See https://doc.owncloud.org/server/9.0/admin_manual/maintenance/upgrade.html" + echo "" +fi +rm -f %{statedir}/occ_maintenance_mode_during_owncloud_install + +if [ $1 -eq 1 ]; then + echo "Asserting file permission during first install" + # CAUTION: if owncloud-files was installed before httpd, everything belongs to root:root. + # Mimic here again, what the files section there would have done: + chown -R %{oc_user}:%{oc_group} %{oc_config_dir} %{oc_data_dir} %{oc_dir}/apps +fi + +# no binary packages are generated without a files section. +%files +%files -n %{ocphp_deps_name} +%if 0%{?support_php7} +%files -n owncloud-deps-php7 +%endif + +%changelog +* Tue Mar 8 2016 jw@owncloud.com +- Upgrade to 9.0.0 +* Sat Mar 5 2016 jw@owncloud.com +- Upgrade to 9.0.0~RC2 + (No code change in the owncloud wrapper package, see owncloud-files) +* Wed Mar 2 2016 jw@owncloud.com +- Upgrade to 9.0.0~RC1 + (No code change in the owncloud wrapper package, see owncloud-files) +* Wed Feb 24 2016 jw@owncloud.com +- Asserting file permission during first install of deps package +* Fri Feb 19 2016 jw@owncloud.com +- survive integrity checks. see ee:9.0:testing for details +* Thu Feb 18 2016 jw@owncloud.com +- really name SCL specific repos SCL. +* Tue Feb 16 2016 jw@owncloud.com +- updated pre / post scripts to specfile + (debian scripts still missing) +* Fri Feb 12 2016 jw@owncloud.com +- owncloud-deps-php5 now has all the Requires, we had in owncloud-8.2.x +* Thu Feb 11 2016 jw@owncloud.com +- initial 9.0 setup: owncloud-files +- owncloud and owncloud-deps diff --git a/fedora/SPECS/perl-Audio-Cuefile-Parser.spec b/fedora/SPECS/perl-Audio-Cuefile-Parser.spec new file mode 100644 index 0000000..f9d789c --- /dev/null +++ b/fedora/SPECS/perl-Audio-Cuefile-Parser.spec @@ -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 0.02-alt1 +- initial import by package builder + diff --git a/fedora/SPECS/perl-Audio-Scan.spec b/fedora/SPECS/perl-Audio-Scan.spec new file mode 100644 index 0000000..a07dc75 --- /dev/null +++ b/fedora/SPECS/perl-Audio-Scan.spec @@ -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 - 0.93-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/fedora/SPECS/perl-IO-AIO.spec b/fedora/SPECS/perl-IO-AIO.spec new file mode 100644 index 0000000..5682b6f --- /dev/null +++ b/fedora/SPECS/perl-IO-AIO.spec @@ -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 - 3.71-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/fedora/SPECS/perl-Image-Scale.spec b/fedora/SPECS/perl-Image-Scale.spec new file mode 100644 index 0000000..72f1cd8 --- /dev/null +++ b/fedora/SPECS/perl-Image-Scale.spec @@ -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 - 0.08-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/fedora/SPECS/perl-MP3-Cut-Gapless.spec b/fedora/SPECS/perl-MP3-Cut-Gapless.spec new file mode 100644 index 0000000..40de256 --- /dev/null +++ b/fedora/SPECS/perl-MP3-Cut-Gapless.spec @@ -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 - 0.03-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/fedora/SPECS/perl-Nagios-Plugin.spec b/fedora/SPECS/perl-Nagios-Plugin.spec new file mode 100644 index 0000000..bad2136 --- /dev/null +++ b/fedora/SPECS/perl-Nagios-Plugin.spec @@ -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 +- Update to 0.38 version. +* Thu Dec 18 2014 +- New initial package, but is forked of perl-Nagios-Plugin. diff --git a/fedora/SPECS/perl-Net-Netmask.spec b/fedora/SPECS/perl-Net-Netmask.spec new file mode 100644 index 0000000..1e91e7e --- /dev/null +++ b/fedora/SPECS/perl-Net-Netmask.spec @@ -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 - 1.9021-1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.9015-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1.9015-14 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.9015-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.9015-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 1.9015-11 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.9015-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Jun 15 2011 Marcela Mašláňová - 1.9015-9 +- Perl mass rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.9015-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 21 2010 Marcela Maslanova - 1.9015-7 +- 661697 rebuild for fixing problems with vendorach/lib + +* Tue May 04 2010 Marcela Maslanova - 1.9015-6 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 1.9015-5 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.9015-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1.9015-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Jun 30 2008 Paul Howarth - 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 - 1.9015-1 +- 1.9015, update license tag + +* Thu Sep 14 2006 Warren Togami - 1.9012-3 +- rebuild for FC6 + +* Fri May 20 2005 Ville Skyttä - 1.9012-2 +- 1.9012, use canonical CPAN URL in Source0. + +* Fri Apr 7 2005 Michael Schwendt - 1.9011-2 +- rebuilt + +* Sun Aug 15 2004 Ville Skyttä - 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ä - 0:1.9007-0.fdr.2 +- Reduce directory ownership bloat. +- Run tests in the %%check section. + +* Sat Feb 07 2004 Warren Togami - 0:1.9007-0.fdr.1 +- upgrade to 1.9007 + +* Thu Nov 13 2003 Ville Skyttä - 0:1.9004-0.fdr.2 +- Specfile rewrite. + +* Fri Sep 19 2003 Warren Togami - 1.9004-0.fdr.1 +- Specfile autogenerated. diff --git a/fedora/SPECS/pnp4nagios.spec b/fedora/SPECS/pnp4nagios.spec new file mode 100644 index 0000000..70e1647 --- /dev/null +++ b/fedora/SPECS/pnp4nagios.spec @@ -0,0 +1,171 @@ +# if not defined, we use icinga as dependency: +%define mon icinga +# command to install: +# rpmbuild -ba --define "with_nagios 1" --sign SPECS/pnp4nagios.spec +%{?with_nagios:%define mon nagios} + +Name: pnp4nagios +Version: 0.6.25 +Release: 1003%{?dist} +Summary: Nagios/Icinga performance data analysis tool + +Group: Applications/System +License: GPLv2 +URL: http://www.%{name}.org/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source1: %{name}.logrotate.conf +Source2: %{name}-npcd.sysvinit +Source3: %{name}-README.fedora +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: autoconf, automake, libtool +BuildRequires: rrdtool-perl +BuildRequires: perl(Time::HiRes) +Requires: %mon +Requires: rrdtool-perl +Requires: php-gd +Requires(post): chkconfig +Requires(preun): chkconfig +Requires(preun): initscripts +Requires(postun): initscripts +Provides: /bin/perl + +%description +PNP is an addon to nagios which analyzes performance data provided by plugins +and stores them automatically into RRD-databases. + + +%prep +%setup -q +autoreconf + +cp -p %{SOURCE3} README.fedora +sed -i -e 's/^INSTALL_OPTS="-o %{mon} -g %{mon}"/INSTALL_OPTS=""/' configure +sed -i -e '/^\t$(MAKE) strip-post-install$/d' src/Makefile.in + + +%build +%configure --bindir=%{_sbindir} \ + --libexecdir=%{_libexecdir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --localstatedir=%{_localstatedir}/log/%{name} \ + --datadir=%{_datadir}/%{name}/html \ + --datarootdir=%{_datadir}/%{name}/html \ + --with-perfdata-dir=%{_localstatedir}/lib/%{name} \ + --with-perfdata-spool-dir=%{_localstatedir}/spool/%{name} \ + --with-nagios_user=%{mon} \ + --with-nagios_group=%{mon} +make %{?_smp_mflags} all + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +make install-config DESTDIR=$RPM_BUILD_ROOT +# remove -sample from filename suffix +for i in $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/*-sample \ + $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/*/*-sample +do + mv ${i} ${i%%-sample} +done +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.php.* +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config_local.php + +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name} +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name} +install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} +install -Dp -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/npcd +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d +sed 's|/usr/local/nagios/etc/htpasswd.users|/etc/%{mon}/passwd|' \ + sample-config/httpd.conf \ + > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf +mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{mon}/brokers +mv $RPM_BUILD_ROOT%{_libdir}/npcdmod.o \ + $RPM_BUILD_ROOT%{_libdir}/%{mon}/brokers/npcdmod.o +mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_datadir}/ + +# Move kohana to pnp4nagios, there is another kohana in fedore/EPEL, +# which can be installed. +mv $RPM_BUILD_ROOT%{_libdir}/kohana \ + $RPM_BUILD_ROOT%{_datadir}/%{name}/html/kohana +sed -i 's|%{_libdir}/kohana|%{_datadir}/%{name}/html/kohana|' \ + $RPM_BUILD_ROOT%{_datadir}/%{name}/html/index.php + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/chkconfig --add npcd + + +%preun +if [ $1 = 0 ]; then + /sbin/service npcd stop >/dev/null 2>&1 + /sbin/chkconfig --del npcd +fi + + +%postun +if [ "$1" -ge "1" ]; then + /sbin/service npcd condrestart >/dev/null 2>&1 || : +fi + + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog COPYING INSTALL README README.fedora +%doc THANKS contrib/ +%dir %{_sysconfdir}/%{name} +%config(noreplace) %attr(0640,root,%{mon}) %{_sysconfdir}/%{name}/process_perfdata.cfg +%config(noreplace) %{_sysconfdir}/%{name}/background.pdf +%config(noreplace) %{_sysconfdir}/%{name}/check_commands/*.cfg +%config(noreplace) %{_sysconfdir}/%{name}/config.d +%config(noreplace) %{_sysconfdir}/%{name}/config.php +%config(noreplace) %{_sysconfdir}/%{name}/misccommands.cfg +%config(noreplace) %{_sysconfdir}/%{name}/nagios.cfg +%config(noreplace) %{_sysconfdir}/%{name}/npcd.cfg +%config(noreplace) %{_sysconfdir}/%{name}/pages/* +%config(noreplace) %{_sysconfdir}/%{name}/rra.cfg +%config %{_sysconfdir}/%{name}/pnp4nagios_release +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%attr(755,root,root) %{_initrddir}/npcd +%attr(755,root,root) %{_sbindir}/npcd +%{_libdir}/%{mon}/brokers/npcdmod.o +%dir %{_libexecdir}/%{name} +%attr(755,root,root) %{_libexecdir}/%{name}/* +%attr(755,%{mon},%{mon}) %{_localstatedir}/lib/%{name} +%attr(755,%{mon},%{mon}) %{_localstatedir}/log/%{name} +%attr(755,%{mon},%{mon}) %{_localstatedir}/spool/%{name} +%{_datadir}/%{name}/html/application +%{_datadir}/%{name}/html/documents +%{_datadir}/%{name}/html/index.php +%{_datadir}/%{name}/html/media +%{_datadir}/%{name}/html/templates.dist +%{_datadir}/%{name}/html/templates +%{_datadir}/%{name}/html/templates.special +# Remove install check script +# as it is not required if all dependencies are met. +%exclude %{_datadir}/%{name}/html/install.php +%{_mandir}/man8/* +# This is a different version of Kohana like in Fedora/EPEL. +# Needed for pnp4nagios web interface to work. +%{_datadir}/%{name}/html/kohana + +%changelog +* Thu Apr 23 2015 +- New perl version. +* Tue Feb 24 2015 +- New perl version. +* Thu Jan 8 2015 +- Update to 0.6.25. +* Fri Oct 17 2014 +- Perl version changed on system. +* Thu Aug 7 2014 +- Update to 0.6.24. +* Fri Jul 11 2014 +- Update to 0.6.22. +* Sat Dec 7 2013 +- New package. diff --git a/fedora/SPECS/scite.spec b/fedora/SPECS/scite.spec new file mode 100644 index 0000000..cec3b7b --- /dev/null +++ b/fedora/SPECS/scite.spec @@ -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 - 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 - 2.22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 2.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Dec 4 2010 Jorge Torres 2.22-1 +- Update to 2.22 + +* Sat Apr 17 2010 Jorge Torres 2.11-1 +- Update to 2.11 +- Fix bug #564689 + +* Thu Oct 1 2009 Jorge Torres 2.01-1 +- Update to 2.01 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.77-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Apr 4 2009 Jorge Torres 1.77-1 +- Upgrade to 1.77 + +* Wed Feb 25 2009 Fedora Release Engineering - 1.74-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 19 2008 Fedora Release Engineering - 1.74-3 +- Autorebuild for GCC 4.3 + +* Wed Aug 29 2007 Fedora Release Engineering - 1.74-2 +- Rebuild for selinux ppc32 issue. + +* Wed Jun 20 2007 Jorge Torres 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 1.71-1 +- Upgrade to 1.71 +- Use 'iconv' to work around a desktop file encoding issue + +* Thu Jun 22 2006 Jorge Torres 1.70-1 +- Upgrade to 1.70 +- Drop man-page capitalization patch + +* Sun Jun 04 2006 Jorge Torres 1.69-3 +- Remove usage of MultipleArgs in desktop file. + +* Fri Jun 02 2006 Jorge Torres 1.69-2 +- Changed license to MIT. +- Added patches to support compiling with %%{optflags}. +- Misc fixes. + +* Thu Jun 01 2006 Jorge Torres 1.69-1 +- Initial package version. diff --git a/fedora/SPECS/sftp-config.json b/fedora/SPECS/sftp-config.json new file mode 100644 index 0000000..a45ef32 --- /dev/null +++ b/fedora/SPECS/sftp-config.json @@ -0,0 +1,43 @@ +{ + // The tab key will cycle through the settings when first created + // Visit http://wbond.net/sublime_packages/sftp/settings for help + + // sftp, ftp or ftps + "type": "sftp", + + "save_before_upload": true, + "upload_on_save": false, + "sync_down_on_open": false, + "sync_skip_deletes": false, + "sync_same_age": true, + "confirm_downloads": false, + "confirm_sync": true, + "confirm_overwrite_newer": false, + + "host": "fedorabuild", + "user": "dani", + //"password": "password", + //"port": "22", + + "remote_path": "/home/dani/rpmbuild/SPECS/", + "ignore_regexes": [ + "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json", + "sftp-settings\\.json", "/venv/", "\\.svn", "\\.hg", "\\.git", + "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini" + ], + //"file_permissions": "664", + //"dir_permissions": "775", + + //"extra_list_connections": 0, + + "connect_timeout": 30, + //"keepalive": 120, + //"ftp_passive_mode": true, + //"ssh_key_file": "~/.ssh/id_rsa", + //"sftp_flags": ["-F", "/path/to/ssh_config"], + + //"preserve_modification_times": false, + //"remote_time_offset_in_hours": 0, + //"remote_encoding": "utf-8", + //"remote_locale": "C", +} diff --git a/fedora/SPECS/subversion.spec b/fedora/SPECS/subversion.spec new file mode 100644 index 0000000..c20c5ce --- /dev/null +++ b/fedora/SPECS/subversion.spec @@ -0,0 +1,478 @@ +# set to zero to avoid running test suite +%define make_check 0 + +%define with_java 1 +%define with_kwallet 1 + +# set JDK path to build javahl; default for JPackage +%define jdk_path /usr/lib/jvm/java + +%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) + +%if 0%{?fedora} < 18 +%define dbdevel db4-devel +%else +%define dbdevel libdb-devel +%endif + +%global sqlite_minver 3.7.12 + +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo missing-httpd-devel)}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} + +Summary: A Modern Concurrent Version Control System +Name: subversion +Version: 1.8.8 +Release: 1%{?dist} +License: ASL 2.0 +Group: Development/Tools +URL: http://subversion.apache.org/ +Source0: http://www.apache.org/dist/subversion/subversion-%{version}.tar.bz2 +Source1: subversion.conf +Source3: filter-requires.sh +Source4: http://www.xsteve.at/prg/emacs/psvn.el +Source5: psvn-init.el +Source6: svnserve.service +Source7: svnserve.tmpfiles +Source8: svnserve.sysconf +Patch1: subversion-1.8.0-rpath.patch +Patch2: subversion-1.8.0-pie.patch +Patch3: subversion-1.8.0-kwallet.patch +Patch4: subversion-1.8.0-rubybind.patch +Patch5: subversion-1.8.0-aarch64.patch +BuildRequires: autoconf, libtool, python, python-devel, texinfo, which +BuildRequires: %{dbdevel} >= 4.1.25, swig >= 1.3.24, gettext +BuildRequires: apr-devel >= 1.3.0, apr-util-devel >= 1.3.0 +BuildRequires: libserf-devel >= 1.2.1, cyrus-sasl-devel +BuildRequires: sqlite-devel >= %{sqlite_minver}, file-devel, systemd-units +# Any apr-util crypto backend needed +BuildRequires: apr-util-openssl +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Provides: svn = %{version}-%{release} +Requires: subversion-libs%{?_isa} = %{version}-%{release} +Requires(post): systemd-sysv, /sbin/chkconfig + +%define __perl_requires %{SOURCE3} + +# Put Python bindings in site-packages +%define swigdirs swig_pydir=%{python_sitearch}/libsvn swig_pydir_extra=%{python_sitearch}/svn + +%description +Subversion is a concurrent version control system which enables one +or more users to collaborate in developing and maintaining a +hierarchy of files and directories while keeping a history of all +changes. Subversion only stores the differences between versions, +instead of every complete file. Subversion is intended to be a +compelling replacement for CVS. + +%package libs +Group: Development/Tools +Summary: Libraries for Subversion Version Control system +# APR 1.3.x interfaces are required +Conflicts: apr%{?_isa} < 1.3.0 + +%description libs +The subversion-libs package includes the essential shared libraries +used by the Subversion version control tools. + +%package python +Group: Development/Libraries +Summary: Python bindings for Subversion Version Control system + +%description python +The subversion-python package includes the Python bindings to the +Subversion libraries. + +%package devel +Group: Development/Tools +Summary: Development package for the Subversion libraries +Requires: subversion%{?_isa} = %{version}-%{release} +Requires: apr-devel%{?_isa}, apr-util-devel%{?_isa} + +%description devel +The subversion-devel package includes the libraries and include files +for developers interacting with the subversion package. + +%package gnome +Group: Development/Tools +Summary: GNOME Keyring support for Subversion +Requires: subversion%{?_isa} = %{version}-%{release} +BuildRequires: libgnome-keyring-devel, dbus-devel + +%description gnome +The subversion-gnome package adds support for storing Subversion +passwords in the GNOME Keyring. + +%if %{with_kwallet} +%package kde +Group: Development/Tools +Summary: KDE Wallet support for Subversion +Requires: subversion%{?_isa} = %{version}-%{release} +BuildRequires: kdelibs-devel >= 4.0.0 + +%description kde +The subversion-kde package adds support for storing Subversion +passwords in the KDE Wallet. +%endif + +%package -n mod_dav_svn +Group: System Environment/Daemons +Summary: Apache httpd module for Subversion server +Requires: subversion-libs%{?_isa} = %{version}-%{release} +BuildRequires: httpd-devel >= 2.0.45 + +%description -n mod_dav_svn +The mod_dav_svn package allows access to a Subversion repository +using HTTP, via the Apache httpd server. + +%package perl +Group: Development/Libraries +Summary: Perl bindings to the Subversion libraries +BuildRequires: perl-devel >= 2:5.8.0, perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More), perl(ExtUtils::Embed) +Requires: %(eval `perl -V:version`; echo "perl(:MODULE_COMPAT_$version)") +Requires: subversion%{?_isa} = %{version}-%{release} + +%description perl +This package includes the Perl bindings to the Subversion libraries. + +%if %{with_java} +%package javahl +Group: Development/Libraries +Summary: JNI bindings to the Subversion libraries +Requires: subversion%{?_isa} = %{version}-%{release} +BuildRequires: java-devel-openjdk +# JAR repacking requires both zip and unzip in the buildroot +BuildRequires: zip, unzip +# For the tests +BuildRequires: junit + +%description javahl +This package includes the JNI bindings to the Subversion libraries. +%endif + +%package ruby +Group: Development/Libraries +Summary: Ruby bindings to the Subversion libraries +BuildRequires: ruby-devel >= 1.9.1, ruby >= 1.9.1 +BuildRequires: rubygem(minitest) +Requires: subversion%{?_isa} = %{version}-%{release} +Conflicts: ruby-libs%{?_isa} < 1.8.2 + +%description ruby +This package includes the Ruby bindings to the Subversion libraries. + +%package tools +Group: Development/Tools +Summary: Supplementary tools for Subversion +Requires: subversion%{?_isa} = %{version}-%{release} + +%description tools +This package includes supplementary tools for use with Subversion. + +%prep +%setup -q +%patch1 -p1 -b .rpath +%patch2 -p1 -b .pie +%patch3 -p1 -b .kwallet +%patch4 -p1 -b .rubybind +%patch5 -p1 -b .aarch64 + +%build +# Regenerate the buildsystem, so that: +# 1) patches applied to configure.in take effect +# 2) the swig bindings are regenerated using the system swig +# (2) is not ideal since typically upstream test with a different +# swig version +# This PATH order makes the fugly test for libtoolize work... +PATH=/usr/bin:$PATH ./autogen.sh --release + +# fix shebang lines, #111498 +perl -pi -e 's|/usr/bin/env perl -w|/usr/bin/perl -w|' tools/hook-scripts/*.pl.in + +# override weird -shrext from ruby +export svn_cv_ruby_link="%{__cc} -shared" +export svn_cv_ruby_sitedir_libsuffix="" +export svn_cv_ruby_sitedir_archsuffix="" + +%ifarch sparc64 +sed -i 's/-fpie/-fPIE/' Makefile.in +%endif + +export CFLAGS="$RPM_OPT_FLAGS" +export APACHE_LDFLAGS="-Wl,-z,relro,-z,now" +export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} +%configure --with-apr=%{_prefix} --with-apr-util=%{_prefix} \ + --with-swig --with-serf=%{_prefix} \ + --with-ruby-sitedir=%{ruby_vendorarchdir} \ + --with-ruby-test-verbose=verbose \ + --with-apxs=%{_httpd_apxs} --disable-mod-activation \ + --with-apache-libexecdir=%{_httpd_moddir} \ + --disable-static --with-sasl=%{_prefix} \ + --with-libmagic=%{_prefix} \ + --with-gnome-keyring \ +%if %{with_java} + --enable-javahl \ + --with-junit=%{_prefix}/share/java/junit.jar \ +%endif +%if %{with_kwallet} + --with-kwallet \ +%endif + --with-berkeley-db || (cat config.log; exit 1) +make %{?_smp_mflags} all tools +make swig-py swig-py-lib %{swigdirs} +make swig-pl swig-pl-lib swig-rb swig-rb-lib +%if %{with_java} +# javahl-javah does not parallel-make with javahl +#make javahl-java javahl-javah +make javahl +%endif + +%install +rm -rf ${RPM_BUILD_ROOT} +make install install-swig-py install-swig-pl-lib install-swig-rb \ + DESTDIR=$RPM_BUILD_ROOT %{swigdirs} +%if %{with_java} +make install-javahl-java install-javahl-lib javahl_javadir=%{_javadir} DESTDIR=$RPM_BUILD_ROOT +%endif + +make pure_vendor_install -C subversion/bindings/swig/perl/native \ + PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/subversion + +mkdir -p ${RPM_BUILD_ROOT}{%{_httpd_modconfdir},%{_httpd_confdir}} + +%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}" +# httpd <= 2.2.x +install -p -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_httpd_confdir} +%else +sed -n /^LoadModule/p %{SOURCE1} > 10-subversion.conf +sed /^LoadModule/d %{SOURCE1} > example.conf +touch -r %{SOURCE1} 10-subversion.conf example.conf +install -p -m 644 10-subversion.conf ${RPM_BUILD_ROOT}%{_httpd_modconfdir} +%endif + +# Remove unpackaged files +rm -rf ${RPM_BUILD_ROOT}%{_includedir}/subversion-*/*.txt \ + ${RPM_BUILD_ROOT}%{python_sitearch}/*/*.{a,la} + +# The SVN build system is broken w.r.t. DSO support; it treats +# normal libraries as DSOs and puts them in $libdir, whereas they +# should go in some subdir somewhere, and be linked using -module, +# etc. So, forcibly nuke the .so's for libsvn_auth_{gnome,kde}, +# since nothing should ever link against them directly. +rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsvn_auth_*.so + +# remove stuff produced with Perl modules +find $RPM_BUILD_ROOT -type f \ + -a \( -name .packlist -o \( -name '*.bs' -a -empty \) \) \ + -print0 | xargs -0 rm -f + +# make Perl modules writable so they get stripped +find $RPM_BUILD_ROOT%{_libdir}/perl5 -type f -perm 555 -print0 | + xargs -0 chmod 755 + +# unnecessary libraries for swig bindings +rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsvn_swig_*.{so,la,a} + +# Remove unnecessary ruby libraries +rm -f ${RPM_BUILD_ROOT}%{ruby_vendorarchdir}/svn/ext/*.*a + +# Trim what goes in docdir +rm -rf tools/*/*.in + +# Install psvn for emacs and xemacs +for f in emacs/site-lisp xemacs/site-packages/lisp; do + install -m 755 -d ${RPM_BUILD_ROOT}%{_datadir}/$f + install -m 644 $RPM_SOURCE_DIR/psvn.el ${RPM_BUILD_ROOT}%{_datadir}/$f +done + +install -m 644 $RPM_SOURCE_DIR/psvn-init.el \ + ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp + +# Rename authz_svn INSTALL doc for docdir +ln -f subversion/mod_authz_svn/INSTALL mod_authz_svn-INSTALL + +# Trim exported dependencies to APR libraries only: +sed -i "/^dependency_libs/{ + s, -l[^ ']*, ,g; + s, -L[^ ']*, ,g; + s,%{_libdir}/lib[^a][^p][^r][^ ']*.la, ,g; + }" $RPM_BUILD_ROOT%{_libdir}/*.la + +# Install bash completion +install -Dpm 644 tools/client-side/bash_completion \ + $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/svn +for comp in svnadmin svndumpfilter svnlook svnsync svnversion; do + ln -s svn \ + $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/${comp} +done + +# Install svnserve bits +mkdir -p %{buildroot}%{_unitdir} \ + %{buildroot}/run/svnserve \ + %{buildroot}%{_prefix}/lib/tmpfiles.d \ + %{buildroot}%{_sysconfdir}/sysconfig + +install -p -m 644 $RPM_SOURCE_DIR/svnserve.service \ + %{buildroot}%{_unitdir}/svnserve.service +install -p -m 644 $RPM_SOURCE_DIR/svnserve.tmpfiles \ + %{buildroot}%{_prefix}/lib/tmpfiles.d/svnserve.conf +install -p -m 644 $RPM_SOURCE_DIR/svnserve.sysconf \ + %{buildroot}%{_sysconfdir}/sysconfig/svnserve + +# Install tools ex diff* +make install-tools DESTDIR=$RPM_BUILD_ROOT toolsdir=%{_bindir} +rm -f $RPM_BUILD_ROOT%{_bindir}/diff* + +for f in svn-populate-node-origins-index svn-rep-sharing-stats svnauthz-validate svnmucc svnraisetreeconflict; do + echo %{_bindir}/$f +done | tee tools.files | sed 's/^/%%exclude /' > exclude.tools.files + +%find_lang %{name} + +cat %{name}.lang exclude.tools.files >> %{name}.files + +%if %{make_check} +%check +export LANG=C LC_ALL=C +export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} +export MALLOC_PERTURB_=171 MALLOC_CHECK_=3 +export LIBC_FATAL_STDERR_=1 +if ! make check check-swig-pl check-swig-py check-swig-rb CLEANUP=yes; then + : Test suite failure. + cat fails.log + exit 1 +fi +# check-swig-rb omitted: it runs svnserve +%if %{with_java} +make check-javahl +%endif +%endif + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%post +%systemd_post svnserve.service + +%preun +%systemd_preun svnserve.service + +%postun +%systemd_postun_with_restart svnserve.service + +%triggerun -- subversion < 1.7.3-2 +/usr/bin/systemd-sysv-convert --save svnserve >/dev/null 2>&1 ||: +/sbin/chkconfig --del svnserve >/dev/null 2>&1 || : +/bin/systemctl try-restart svnserve.service >/dev/null 2>&1 || : + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%post perl -p /sbin/ldconfig + +%postun perl -p /sbin/ldconfig + +%post ruby -p /sbin/ldconfig + +%postun ruby -p /sbin/ldconfig + +%if %{with_java} +%post javahl -p /sbin/ldconfig + +%postun javahl -p /sbin/ldconfig +%endif + +%files -f %{name}.files +%defattr(-,root,root) +%doc BUGS COMMITTERS LICENSE NOTICE INSTALL README CHANGES +%doc tools/hook-scripts tools/backup tools/bdb tools/examples tools/xslt +%doc mod_authz_svn-INSTALL +%{_bindir}/* +%{_mandir}/man*/* +%{_datadir}/emacs/site-lisp/*.el +%{_datadir}/xemacs/site-packages/lisp/*.el +%{_datadir}/bash-completion/completions/* +%config(noreplace) %{_sysconfdir}/sysconfig/svnserve +%dir %{_sysconfdir}/subversion +%exclude %{_mandir}/man*/*::* +%{_unitdir}/*.service +%dir /run/svnserve +%{_prefix}/lib/tmpfiles.d/svnserve.conf + +%files tools -f tools.files +%defattr(-,root,root) + +%files libs +%defattr(-,root,root) +%doc LICENSE NOTICE +%{_libdir}/libsvn_*.so.* +%exclude %{_libdir}/libsvn_swig_perl* +%exclude %{_libdir}/libsvn_swig_ruby* +%if %{with_kwallet} +%exclude %{_libdir}/libsvn_auth_kwallet* +%endif +%exclude %{_libdir}/libsvn_auth_gnome* + +%files python +%defattr(-,root,root) +%{python_sitearch}/svn +%{python_sitearch}/libsvn + +%files gnome +%defattr(-,root,root) +%{_libdir}/libsvn_auth_gnome_keyring-*.so.* + +%if %{with_kwallet} +%files kde +%defattr(-,root,root) +%{_libdir}/libsvn_auth_kwallet-*.so.* +%endif + +%files devel +%defattr(-,root,root) +%{_includedir}/subversion-1 +%{_libdir}/libsvn*.*a +%{_libdir}/libsvn*.so +%exclude %{_libdir}/libsvn_swig_perl* +%if %{with_java} +%exclude %{_libdir}/libsvnjavahl-1.* +%endif + +%files -n mod_dav_svn +%defattr(-,root,root) +%config(noreplace) %{_httpd_modconfdir}/*.conf +%{_libdir}/httpd/modules/mod_*.so +%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" +%doc example.conf +%endif + +%files perl +%defattr(-,root,root,-) +%{perl_vendorarch}/auto/SVN +%{perl_vendorarch}/SVN +%{_libdir}/libsvn_swig_perl* +%{_mandir}/man*/*::* + +%files ruby +%defattr(-,root,root,-) +%{_libdir}/libsvn_swig_ruby* +%{ruby_vendorarchdir}/svn + +%if %{with_java} +%files javahl +%defattr(-,root,root,-) +%{_libdir}/libsvnjavahl-1.* +%{_javadir}/svn-javahl.jar +%endif + +%changelog +* Fri Feb 21 2014 Daniel Steiner +- First package got from original fedora source (1.8.8). diff --git a/fedora/SPECS/w3perl.spec b/fedora/SPECS/w3perl.spec new file mode 100644 index 0000000..7ae8b81 --- /dev/null +++ b/fedora/SPECS/w3perl.spec @@ -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 < %{mod_conf} +Alias /%{name} %{basedir} + + Allow from all + +EOF +mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d +install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{mod_conf} + +cat > README.urpmi < Web admin : Select 'Init all stats' with your configuration file + 4b -> Command line : Run cron-w3perl.pl -a -c + 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 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 1.8-1 +- Use = rather than == for sh shell + +* Mon Jun 03 2013 Laurent Domisse 1.173-1 +- Remove Windows files + +* Tue May 29 2013 Laurent Domisse 1.172-3 +- Relocation available with --relocate /var/www/w3perl = NEWPATH --relocate /var/www/cgi-bin/w3perl = NEWCGIPATH + +* Sat May 25 2013 Laurent Domisse 1.172-2 +- Upgrade.txt file and symlink added, fix %defattr + +* Tue May 21 2013 Laurent Domisse 1.172-1 +- Cleanup diff --git a/fedora/icinga.spec.diff b/fedora/icinga.spec.diff new file mode 100644 index 0000000..bccdc48 --- /dev/null +++ b/fedora/icinga.spec.diff @@ -0,0 +1,20 @@ +Index: icinga.spec +=================================================================== +--- icinga.spec (revision 29) ++++ icinga.spec (working copy) +@@ -61,6 +61,7 @@ + URL: http://www.icinga.org/ + + Source0: https://github.com/Icinga/icinga-core/releases/download/v%{version}/icinga-%{version}.tar.gz ++Patch0: systemd-ido2db.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + + %if "%{_vendor}" == "redhat" +@@ -189,6 +190,7 @@ + + %prep + %setup -qn %{name}-%{version} ++%patch0 + + cat << EOF > README.idoutils.transitional + Transitional package. Idoutils has been splitted into