7ffec4c
Name:       ncid
ba0e0b7
Version:    1.15
ba0e0b7
Release:    2%{?dist}
b63bc29
Summary:    Network Caller ID server, client and gateways
46e5ca5
Requires:   logrotate
Eric Sandeen 95e7723
License:    GPLv3+
7ffec4c
Url:        http://ncid.sourceforge.net
b63bc29
Source0:    https://sourceforge.net/projects/ncid/files/%{name}/%{version}/%{name}-%{version}-src.tar.gz
7ffec4c
a701ad6
BuildRequires: make, gcc, gcc-c++
efb6783
BuildRequires: libpcap-devel, pcre2-devel, libappstream-glib
efb6783
BuildRequires: libphonenumber-devel, libicu-devel, protobuf-devel hidapi-devel
b63bc29
BuildRequires: perl-generators, perl-podlators
Eric Sandeen c1416d5
%{?systemd_requires}
Eric Sandeen c1416d5
BuildRequires: systemd
7ffec4c
Eric Sandeen 721f388
7ffec4c
%description
7ffec4c
NCID is Caller ID (CID) distributed over a network to a variety of
7ffec4c
devices and computers.  NCID includes a server, gateways, a client,
b63bc29
client output modules and command line tools.
7ffec4c
Eric Sandeen 723dc14
The NCID server obtains the Caller ID information from a modem,
b63bc29
a serial or USB device and from gateways: NCID, OBI, SIP, WC, YAC and XDMF.
7ffec4c
b63bc29
This package contains the server and command line tools.
b63bc29
The gateways are in the ncid-gateways package.
a701ad6
The client and default modules are in the ncid-client package.
7ffec4c
b63bc29
%package gateways
b63bc29
Summary:    NCID (Network Caller ID) gateways
efb6783
Requires:   libpcap%{?_isa} >= 1.5.0, nc, hidapi
b63bc29
b63bc29
%description gateways
b63bc29
NCID is Caller ID (CID) distributed over a network to a variety of
b63bc29
devices and computers.  NCID includes a server, gateways, a client,
b63bc29
client output modules and command line tools.
b63bc29
b63bc29
This package contains the NCID gateways.
b63bc29
7ffec4c
%package client
7ffec4c
Summary:    NCID (Network Caller ID) client
ecbbfda
BuildArch:  noarch
3c7f909
Requires:   tcl, tk >= 8.6.8, mailx, nmap-ncat, bwidget, python3, python3-phonenumbers
7ffec4c
7ffec4c
%description client
Eric Sandeen 723dc14
The NCID client obtains the Caller ID from the NCID server and normally
7ffec4c
displays it in a GUI window.  It can also display the Called ID in a
Eric Sandeen 723dc14
terminal window or, using an output module, format the output and send it
7ffec4c
to another program.
7ffec4c
Eric Sandeen 723dc14
This package contains the NCID client and output modules that are not
Eric Sandeen 723dc14
separate packages.
Eric Sandeen 723dc14
7ffec4c
%package kpopup
Eric Sandeen 723dc14
Summary:    NCID kpopup module displays Caller ID info in a KDE window
7ffec4c
BuildArch:  noarch
7ffec4c
Requires:   %{name}-client = %{version}-%{release}
7ffec4c
Requires:   %{name}-speak = %{version}-%{release}
Eric Sandeen 723dc14
Requires:   kde-baseapps, kmix
7ffec4c
7ffec4c
%description kpopup
Eric Sandeen 723dc14
The NCID kpopup module displays Caller ID information in a KDE pop-up window
Eric Sandeen 723dc14
and optionally speaks the number via voice synthesis.  The KDE or Gnome
Eric Sandeen 723dc14
desktop must be running.
7ffec4c
Eric Sandeen 95e7723
%package mysql
Eric Sandeen 95e7723
Summary:    NCID mysql module inputs Caller ID information into a SQL database
Eric Sandeen 95e7723
BuildArch:  noarch
Eric Sandeen 95e7723
Requires:   %{name}-client = %{version}-%{release}, mysql
Eric Sandeen 95e7723
Eric Sandeen 95e7723
%description mysql
Eric Sandeen 95e7723
The NCID mysql module inputs NCID Caller information into a SQL database
Eric Sandeen 95e7723
using either MariaDB or a MySQL database.
Eric Sandeen 95e7723
8f75b20
%package mythtv
8f75b20
Summary:    NCID mythtv module sends Caller ID information to MythTV
8f75b20
BuildArch:  noarch
8f75b20
Requires:   %{name}-client = %{version}-%{release}
8f75b20
Recommends: mythtv-frontend
8f75b20
8f75b20
%description mythtv
8f75b20
The NCID MythTV module displays Caller ID information using mythutil
8f75b20
7ffec4c
%package samba
Eric Sandeen 723dc14
Summary:    NCID samba module sends Caller ID information to windows machines
7ffec4c
BuildArch:  noarch
7ffec4c
Requires:   %{name}-client = %{version}-%{release}, samba-client
7ffec4c
7ffec4c
%description samba
Eric Sandeen 723dc14
The NCID samba module sends Caller ID information to a windows machine
Eric Sandeen 723dc14
as a pop-up.  This will not work if the messenger service is disabled.
7ffec4c
7ffec4c
%package speak
Eric Sandeen 723dc14
Summary:    NCID speak module speaks Caller ID information via voice synthesis
7ffec4c
BuildArch:  noarch
7ffec4c
Requires:   %{name}-client = %{version}-%{release}, festival
7ffec4c
7ffec4c
%description speak
7ffec4c
The NCID speak module announces Caller Id information verbally, using
7ffec4c
the Festival text-to-speech voice synthesis system.
7ffec4c
7ffec4c
%prep
7ffec4c
efb6783
%autosetup -n %{name}
7ffec4c
7ffec4c
%build
a701ad6
make %{?_smp_mflags} EXTRA_CFLAGS="$RPM_OPT_FLAGS" libdir libcdir
7ffec4c
make %{?_smp_mflags} EXTRA_CFLAGS="$RPM_OPT_FLAGS" \
b63bc29
     LOCKFILE=/var/lock/lockdev/LCK.. \
b63bc29
     TTYPORT=/dev/ttyACM0 \
d5d4cfd
     STRIP= prefix=%{_prefix} prefix2= package systemddir
7ffec4c
7ffec4c
%install
a701ad6
make install-all install-fedora prefix=%{buildroot}/%{_prefix} \
b63bc29
                            prefix2=%{buildroot} \
b63bc29
                            prefix3=%{buildroot}
7ffec4c
a701ad6
%check
a701ad6
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/ncid.metainfo.xml
a701ad6
7ffec4c
%files
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc README VERSION doc/README-docdir
b63bc29
%doc doc/NCID-UserManual.md doc/NCID-API.md doc/ReleaseNotes.md doc/images
d5d4cfd
%doc man/README-mandir Fedora/README-Fedora server/README-server
d5d4cfd
%doc attic/README-attic extensions/README-extensions logrotate/README-logrotate
d5d4cfd
%doc tools/README-tools lib/README-lib udev/README-udev
089cfca
%license doc/GPL.md
d5d4cfd
%{_docdir}/ncid/recordings/README-recordings
b63bc29
%{_docdir}/ncid/recordings/*.pvf
7ffec4c
%{_bindir}/cidcall
7ffec4c
%{_bindir}/cidalias
7ffec4c
%{_bindir}/cidupdate
Eric Sandeen 95e7723
%{_bindir}/ncid-setup
b63bc29
%{_bindir}/ncidutil
a701ad6
%{_bindir}/ncidnumberinfo
a701ad6
%{_bindir}/update-cidcall
Eric Sandeen 723dc14
%{_sbindir}/ncidd
a701ad6
%dir %{_libdir}/ncid
7ffec4c
%dir %{_datadir}/ncid
Eric Sandeen 95e7723
%dir %{_datadir}/ncid/sys
b63bc29
%dir %{_datadir}/ncid/recordings
b63bc29
%dir %{_datadir}/ncid/extensions
efb6783
%dir %{_datadir}/ncid/plugins
a701ad6
%{_libdir}/ncid/libcarrier.so.8.12
a701ad6
%{_libdir}/ncid/libcarrier.so.8
a701ad6
%{_libdir}/ncid/libcarrier.so
b63bc29
%{_datadir}/ncid/sys/ncidrotate
d5d4cfd
%{_datadir}/ncid/sys/get-areacodes-list
b63bc29
%{_datadir}/ncid/sys/get-fcc-list
d5d4cfd
%{_datadir}/ncid/sys/ncid-yearlog
b63bc29
%{_datadir}/ncid/sys/udev-action
b63bc29
%{_datadir}/ncid/sys/udev-name
a701ad6
%{_datadir}/ncid/recordings/Callback.rmd
b63bc29
%{_datadir}/ncid/recordings/CallingDeposit.rmd
b63bc29
%{_datadir}/ncid/recordings/CannotBeCompleted.rmd
a701ad6
%{_datadir}/ncid/recordings/DidNotGoThrough.rmd
b63bc29
%{_datadir}/ncid/recordings/DisconnectedNotInService.rmd
b63bc29
%{_datadir}/ncid/recordings/NotInService.rmd
Eric Sandeen 95e7723
%{_datadir}/ncid/extensions/hangup-calls
Eric Sandeen 95e7723
%{_datadir}/ncid/extensions/hangup-closed-skel
ba0e0b7
%{_datadir}/ncid/extensions/hangup-combo
b63bc29
%{_datadir}/ncid/extensions/hangup-fakenum
b63bc29
%{_datadir}/ncid/extensions/hangup-fcc
a701ad6
%{_datadir}/ncid/extensions/hangup-greylist
Eric Sandeen 95e7723
%{_datadir}/ncid/extensions/hangup-message-skel
b63bc29
%{_datadir}/ncid/extensions/hangup-nohangup
Eric Sandeen 95e7723
%{_datadir}/ncid/extensions/hangup-skel
ba0e0b7
%{_datadir}/ncid/extensions/hangup-postal-code
efb6783
%{_datadir}/ncid/plugins/check_nanpa_number
efb6783
%{_datadir}/ncid/plugins/display_ncid_variables
7ffec4c
%dir %{_sysconfdir}/ncid
ba0e0b7
%config(noreplace) %{_sysconfdir}/ncid/hangup-combo.conf
ba0e0b7
%config(noreplace) %{_sysconfdir}/ncid/postal-codes
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/ncidd.blacklist
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/ncidd.whitelist
3c7f909
%config(noreplace) %{_sysconfdir}/ncid/modem2.conf
3c7f909
%config(noreplace) %{_sysconfdir}/ncid/modem3.conf
3c7f909
%config(noreplace) %{_sysconfdir}/ncid/modem4.conf
3c7f909
%config(noreplace) %{_sysconfdir}/ncid/modem5.conf
7ffec4c
%config(noreplace) %{_sysconfdir}/ncid/ncidd.conf
7ffec4c
%config(noreplace) %{_sysconfdir}/ncid/ncidd.alias
7ffec4c
%config(noreplace) %{_sysconfdir}/ncid/ncidrotate.conf
b63bc29
%config(noreplace) %{_sysconfdir}/ncid/rotatebysize.conf
b63bc29
%config(noreplace) %{_sysconfdir}/logrotate.d/ncid
b63bc29
%{_unitdir}/ncidd.service
b63bc29
%{_usr}/lib/udev/rules.d/*.rules
b63bc29
%{_mandir}/man1/cidalias.1*
b63bc29
%{_mandir}/man1/cidcall.1*
b63bc29
%{_mandir}/man1/cidupdate.1*
a701ad6
%{_mandir}/man1/ncidnumberinfo.1*
a701ad6
%{_mandir}/man1/update-cidcall.1*
d5d4cfd
%{_mandir}/man1/get-areacodes-list.1*
b63bc29
%{_mandir}/man1/get-fcc-list.1*
b63bc29
%{_mandir}/man1/hangup-calls.1*
b63bc29
%{_mandir}/man1/hangup-closed-skel.1*
ba0e0b7
%{_mandir}/man1/hangup-combo.1*
b63bc29
%{_mandir}/man1/hangup-fakenum.1*
b63bc29
%{_mandir}/man1/hangup-fcc.1*
a701ad6
%{_mandir}/man1/hangup-greylist.1*
b63bc29
%{_mandir}/man1/hangup-message-skel.1*
b63bc29
%{_mandir}/man1/hangup-nohangup.1*
ba0e0b7
%{_mandir}/man1/hangup-postal-code.1*
b63bc29
%{_mandir}/man1/hangup-skel.1*
b63bc29
%{_mandir}/man1/ncid-setup.1*
b63bc29
%{_mandir}/man1/ncid-yearlog.1*
b63bc29
%{_mandir}/man1/ncidutil.1*
b63bc29
%{_mandir}/man1/ncidrotate.1*
b63bc29
%{_mandir}/man5/ncidd.alias.5*
b63bc29
%{_mandir}/man5/ncidd.conf.5*
a701ad6
%{_mandir}/man5/ncidd.greylist.5*
b63bc29
%{_mandir}/man5/ncidd.blacklist.5*
b63bc29
%{_mandir}/man5/ncidd.whitelist.5*
b63bc29
%{_mandir}/man5/ncidrotate.conf.5*
b63bc29
%{_mandir}/man5/rotatebysize.conf.5*
b63bc29
%{_mandir}/man7/ncid_extensions.7*
3c7f909
%{_mandir}/man7/ncid_modems.7*
b63bc29
%{_mandir}/man7/ncid_recordings.7*
b63bc29
%{_mandir}/man7/ncid_tools.7*
b63bc29
%{_mandir}/man8/ncidd.8*
b63bc29
b63bc29
%files gateways
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc README VERSION doc/GPL.md gateway/README-gateways
efb6783
%{_sbindir}/artech2ncid
efb6783
%{_sbindir}/cideasy2ncid
b63bc29
%{_bindir}/email2ncid
b63bc29
%{_bindir}/ncid2ncid
b63bc29
%{_bindir}/obi2ncid
b63bc29
%{_bindir}/rn2ncid
b63bc29
%{_bindir}/wc2ncid
b63bc29
%{_bindir}/wct
b63bc29
%{_bindir}/xdmf2ncid
b63bc29
%{_bindir}/yac2ncid
b63bc29
%{_sbindir}/sip2ncid
b63bc29
%dir %{_datadir}/ncid/setup
b63bc29
%{_datadir}/ncid/setup/ncid-email2ncid-setup
efb6783
%config(noreplace) %{_sysconfdir}/ncid/artech2ncid.conf
efb6783
%config(noreplace) %{_sysconfdir}/ncid/cideasy2ncid.conf
b63bc29
%config(noreplace) %{_sysconfdir}/ncid/email2ncid.conf
Eric Sandeen 1ca31aa
%config(noreplace) %{_sysconfdir}/ncid/ncid2ncid.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/obi2ncid.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/rn2ncid.conf
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/sip2ncid.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/wc2ncid.conf
b63bc29
%config(noreplace) %{_sysconfdir}/ncid/xdmf2ncid.conf
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/yac2ncid.conf
efb6783
%{_unitdir}/artech2ncid.service
efb6783
%{_unitdir}/cideasy2ncid.service
Eric Sandeen c1416d5
%{_unitdir}/ncid2ncid.service
Eric Sandeen c1416d5
%{_unitdir}/obi2ncid.service
Eric Sandeen c1416d5
%{_unitdir}/rn2ncid.service
Eric Sandeen 723dc14
%{_unitdir}/sip2ncid.service
Eric Sandeen c1416d5
%{_unitdir}/wc2ncid.service
b63bc29
%{_unitdir}/xdmf2ncid.service
Eric Sandeen 723dc14
%{_unitdir}/yac2ncid.service
efb6783
%{_mandir}/man1/artech2ncid.1*
efb6783
%{_mandir}/man1/cideasy2ncid.1*
Eric Sandeen 95e7723
%{_mandir}/man1/email2ncid.1*
Eric Sandeen 1ca31aa
%{_mandir}/man1/ncid2ncid.1*
Eric Sandeen c1416d5
%{_mandir}/man1/obi2ncid.1*
Eric Sandeen c1416d5
%{_mandir}/man1/rn2ncid.1*
Eric Sandeen c1416d5
%{_mandir}/man1/wc2ncid.1*
Eric Sandeen c1416d5
%{_mandir}/man1/wct.1*
b63bc29
%{_mandir}/man1/xdmf2ncid.1*
Eric Sandeen 723dc14
%{_mandir}/man1/yac2ncid.1*
b63bc29
%{_mandir}/man1/ncid-email2ncid-setup.1*
efb6783
%{_mandir}/man5/artech2ncid.conf.5*
efb6783
%{_mandir}/man5/cideasy2ncid.conf.5*
Eric Sandeen 95e7723
%{_mandir}/man5/email2ncid.conf.5*
Eric Sandeen 1ca31aa
%{_mandir}/man5/ncid2ncid.conf.5*
Eric Sandeen c1416d5
%{_mandir}/man5/obi2ncid.conf.5*
Eric Sandeen c1416d5
%{_mandir}/man5/rn2ncid.conf.5*
Eric Sandeen 723dc14
%{_mandir}/man5/sip2ncid.conf.5*
Eric Sandeen c1416d5
%{_mandir}/man5/wc2ncid.conf.5*
b63bc29
%{_mandir}/man5/xdmf2ncid.conf.5*
Eric Sandeen 723dc14
%{_mandir}/man5/yac2ncid.conf.5*
b63bc29
%{_mandir}/man7/ncid_gateways.7*
7ffec4c
%{_mandir}/man8/sip2ncid.8*
7ffec4c
7ffec4c
%files client
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc README VERSION client/README-client modules/README-modules
3c7f909
%doc icons/README-icons locales/README-locales
d5d4cfd
%doc doc/GPL.md doc/README-docdir desktop/README-desktop
7ffec4c
%{_bindir}/ncid
3c7f909
%{_bindir}/phonetz
7ffec4c
%dir %{_datadir}/ncid
Eric Sandeen 723dc14
%dir %{_datadir}/ncid/modules
b63bc29
%dir %{_datadir}/ncid/images
3c7f909
%dir %{_datadir}/ncid/msgs
3c7f909
%{_datadir}/ncid/lib
3c7f909
%{_datadir}/ncid/icons/flags
3c7f909
%{_datadir}/ncid/icons/phones
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-alert
Eric Sandeen 723dc14
%{_datadir}/ncid/modules/ncid-initmodem
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-notify
Eric Sandeen 723dc14
%{_datadir}/ncid/modules/ncid-page
Eric Sandeen 723dc14
%{_datadir}/ncid/modules/ncid-skel
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-wakeup
Eric Sandeen 723dc14
%{_datadir}/ncid/modules/ncid-yac
efb6783
%{_datadir}/ncid/images/logo.png
3c7f909
%{_datadir}/ncid/msgs/de_de.msg
3c7f909
%{_datadir}/ncid/msgs/fr_fr.msg
3c7f909
%{_datadir}/ncid/msgs/ja_jp.msg
a701ad6
%{_datadir}/applications/ncid.desktop
a701ad6
%{_metainfodir}/ncid.metainfo.xml
b63bc29
%{_datadir}/icons/hicolor/128x128/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/96x96/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/72x72/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/64x64/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/48x48/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/32x32/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/24x24/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/22x22/apps/ncid.png
b63bc29
%{_datadir}/icons/hicolor/16x16/apps/ncid.png
7ffec4c
%dir %{_sysconfdir}/ncid
Eric Sandeen 723dc14
%dir %{_sysconfdir}/ncid/conf.d
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/ncid.conf
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-alert.conf
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-notify.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-page.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-skel.conf
Eric Sandeen c1416d5
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-yac.conf
Eric Sandeen c1416d5
%{_unitdir}/ncid-initmodem.service
Eric Sandeen c1416d5
%{_unitdir}/ncid-notify.service
Eric Sandeen 723dc14
%{_unitdir}/ncid-page.service
Eric Sandeen 723dc14
%{_unitdir}/ncid-yac.service
3c7f909
%{_mandir}/man1/phonetz.1*
Eric Sandeen 723dc14
%{_mandir}/man1/ncid.1*
Eric Sandeen c1416d5
%{_mandir}/man1/ncid-alert.1*
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-initmodem.1*
Eric Sandeen c1416d5
%{_mandir}/man1/ncid-notify.1*
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-page.1*
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-skel.1*
Eric Sandeen c1416d5
%{_mandir}/man1/ncid-wakeup.1*
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-yac.1*
7ffec4c
%{_mandir}/man5/ncid.conf.5*
b63bc29
%{_mandir}/man7/ncid_modules.7*
7ffec4c
7ffec4c
%files kpopup
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc VERSION modules/README-modules
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-kpopup
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-kpopup.conf
Eric Sandeen 3879977
%{_mandir}/man1/ncid-kpopup.1*
7ffec4c
Eric Sandeen 95e7723
%files mysql
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc VERSION modules/README-modules setup/README-setup
Eric Sandeen 95e7723
%{_datadir}/ncid/modules/ncid-mysql
Eric Sandeen 95e7723
%{_datadir}/ncid/setup/ncid-mysql-setup
Eric Sandeen 95e7723
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-mysql.conf
b63bc29
%{_unitdir}/ncid-mysql.service
Eric Sandeen 95e7723
%{_mandir}/man1/ncid-mysql.1*
Eric Sandeen 95e7723
%{_mandir}/man8/ncid-mysql-setup.8*
Eric Sandeen 95e7723
8f75b20
%files mythtv
8f75b20
%defattr(-,root,root)
d5d4cfd
%doc VERSION modules/README-modules
8f75b20
%{_datadir}/ncid/modules/ncid-mythtv
8f75b20
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-mythtv.conf
8f75b20
%{_unitdir}/ncid-mythtv.service
8f75b20
%{_mandir}/man1/ncid-mythtv.1*
8f75b20
7ffec4c
%files samba
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc VERSION modules/README-modules
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-samba
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-samba.conf
Eric Sandeen c1416d5
%{_unitdir}/ncid-samba.service
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-samba.1*
7ffec4c
7ffec4c
%files speak
b63bc29
%defattr(-,root,root)
d5d4cfd
%doc VERSION modules/README-modules
Eric Sandeen c1416d5
%{_datadir}/ncid/modules/ncid-speak
Eric Sandeen 723dc14
%config(noreplace) %{_sysconfdir}/ncid/conf.d/ncid-speak.conf
Eric Sandeen c1416d5
%{_unitdir}/ncid-speak.service
Eric Sandeen 723dc14
%{_mandir}/man1/ncid-speak.1*
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%post
b63bc29
%systemd_post ncidd.service
b63bc29
b63bc29
%post gateways
efb6783
%systemd_post artech2ncid.service cideasy2ncid ncid2ncid.service obi2ncid.service rn2ncid.service sip2ncid.service wc2ncid.service xdmf2ncid.service yac2ncid.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%post client
d5d4cfd
%systemd_post ncid-initmodem.service ncid-notify.service ncid-page.service ncid-yac.service
8f75b20
8f75b20
%post mythtv
8f75b20
%systemd_post ncid-mythtv.service
b63bc29
b63bc29
%post mysql
b63bc29
%systemd_post ncid-mysql.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%post samba
Eric Sandeen 723dc14
%systemd_post ncid-samba.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%post speak
Eric Sandeen 723dc14
%systemd_post ncid-speak.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%preun
Eric Sandeen 723dc14
%systemd_preun ncidd.service ncid2ncid.service sip2ncid.service yac2ncid.service obi2ncid.service rn2ncid.service wc2ncid.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%preun client
b63bc29
# stop all modules even from other packages
8f75b20
%systemd_preun ncid-alert ncid-initmodem.service ncid-mysql.service ncid-mythtv.service ncid-notify.service ncid-page.service ncid-samba.service ncid-speak.service ncid-yac.service
b63bc29
# stop ncid GUI client and any user started modules
b63bc29
if [ $1 -eq 0 ] ; then
b63bc29
    pkill -f 'wish.*ncid ' || true
b63bc29
    pkill -f 'tclsh.*ncid-' || true
b63bc29
fi
b63bc29
b63bc29
%preun mysql
b63bc29
%systemd_preun ncid-mysql.service
b63bc29
8f75b20
%preun mythtv
8f75b20
%systemd_preun ncid-mythtv.service
8f75b20
Eric Sandeen 723dc14
%preun samba
Eric Sandeen 723dc14
%systemd_preun ncid-samba.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%preun speak
Eric Sandeen 723dc14
%systemd_preun ncid-speak.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%postun
b63bc29
if [ $1 -ne 0 ]; then
b63bc29
    ### upgrade package ###
b63bc29
    # move any user recordings to recordings directory
b63bc29
    for RECORDING in %{_datadir}/ncid/*.rmd
b63bc29
    do
b63bc29
        test -f $RECORDING && mv $RECORDING %{_datadir}/ncid/recordings || :
b63bc29
    done
b63bc29
b63bc29
    gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
b63bc29
fi
b63bc29
%systemd_postun_with_restart ncidd.service
b63bc29
b63bc29
%postun gateways
b63bc29
%systemd_postun_with_restart ncid2ncid.service obi2ncid.service rn2ncid.service sip2ncid.service wc2ncid.service xdmf2ncid.service yac2ncid.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%postun client
b63bc29
if [ $1 -ge 1 ]; then ### upgrade package ###
b63bc29
    # move any modules found to the modules directory
b63bc29
    for MODULE in %{_datadir}/ncid/ncid-*
b63bc29
    do
b63bc29
        test -f $MODULE && mv $MODULE %{_datadir}/ncid/modules
b63bc29
    done
b63bc29
fi
b63bc29
# a module service could have been installed by another package
b63bc29
%systemd_postun_with_restart %{_datadir}/ncid/modules/ncid-*
b63bc29
b63bc29
%postun mysql
b63bc29
%systemd_postun_with_restart ncid-mysql.service
b63bc29
8f75b20
%postun mythtv
8f75b20
%systemd_postun_with_restart ncid-mythtv.service
8f75b20
Eric Sandeen 723dc14
%postun samba
Eric Sandeen 723dc14
%systemd_postun_with_restart ncid-samba.service
Eric Sandeen 723dc14
Eric Sandeen 723dc14
%postun speak
Eric Sandeen 723dc14
%systemd_postun_with_restart ncid-speak.service
7ffec4c
b63bc29
%posttrans client
b63bc29
# Icon Cache
b63bc29
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
b63bc29
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
b63bc29
7ffec4c
%changelog
ba0e0b7
* Tue Oct 3 2023 John Chmielewski <jlc@users.sourceforge.net> 1.15-1
ba0e0b7
- updated for new upstream release
ba0e0b7
87f9251
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-4
87f9251
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
87f9251
84d4050
* Tue Jul 11 2023 František Zatloukal <fzatlouk@redhat.com> - 1.14-3
84d4050
- Rebuilt for ICU 73.2
84d4050
efb6783
* Wed May 31 2023 John Chmielewski <jlc@users.sourceforge.net> 1.14-2
efb6783
- updated for upstream release
efb6783
- New upstream release
efb6783
9f55f52
* Wed May 17 2023 Sérgio Basto <sergio@serjux.com> - 1.13-9
9f55f52
- Rebuild for libphonenumber-8.13.x
9f55f52
46e5ca5
* Thu Apr 13 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-8
46e5ca5
- Remove redundant perl dependencies
46e5ca5
ab2f6f5
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-7
ab2f6f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ab2f6f5
f60404a
* Sat Dec 31 2022 Pete Walter <pwalter@fedoraproject.org> - 1.13-6
f60404a
- Rebuild for ICU 72
f60404a
f6e4044
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.13-5
f6e4044
- Rebuilt for ICU 71.1
f6e4044
a20e2b5
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
a20e2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a20e2b5
3c7f909
* Tue May 3 2022 John Chmielewski <jlc@users.sourceforge.net> 1.13-3
3c7f909
- updated for upstream release
3c7f909
- New upstream release
3c7f909
2170af9
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-3
2170af9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2170af9
4499963
* Thu Aug 19 2021 John Chmielewski <jlc@users.sourceforge.net> 1.12-1
a701ad6
- changed net.sourceforge.ncid.desktop back to ncid.desktop
a701ad6
- updated for upstream release
a701ad6
- new upstream release
a701ad6
979052a
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-8
979052a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
979052a
e0a481f
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.11-7
e0a481f
- Rebuilt for updated systemd-rpm-macros
e0a481f
  See https://pagure.io/fesco/issue/2583.
e0a481f
1c1e530
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-6
1c1e530
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1c1e530
1c2e27c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
1c2e27c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c2e27c
3def242
* Mon Feb 3 2020 John Chmielewski <jlc@users.sourceforge.net> 1.11-4
3def242
- added ncid-usrlocal-manpage-fixes.patch
3def242
- added logrotate dependency
3def242
941a192
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-3
941a192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
941a192
d5d4cfd
* Mon Jan 27 2020 John Chmielewski <jlc@users.sourceforge.net> 1.11-1
d5d4cfd
- added new gateway requirement: perl-Net-Pcap
d5d4cfd
- changed ncid.desktop to net.sourceforge.ncid.desktop
d5d4cfd
- changed README. files to README- files
d5d4cfd
- changed local to package in build
d5d4cfd
- removed ncid-mysql.service and ncid-mythtv.service from client systemctl_post
d5d4cfd
- new upstream release
01c8569
8f75b20
* Fri Feb 08 2019 John Chmielewski <jlcjohn@fedoraproject.org> - 1.10.1-7
8f75b20
- removed ncid-mythtv.patch
8f75b20
81dfaa6
* Tue Feb 05 2019 John Chmielewski <jlcjohn@fedoraproject.org> - 1.10.1-6
81dfaa6
- added more makefiles changes in ncid-makefiles.patch
81dfaa6
- changed README.desktop to README-desktop
81dfaa6
dfcd1b9
* Sat Feb 02 2019 John Chmielewski <jlcjohn@fedoraproject.org> - 1.10.1-5
dfcd1b9
- added ncid-mythtv.patch
dfcd1b9
964e566
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-4
964e566
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
964e566
7d88021
* Thu Jan 31 2019 John Chmielewski <jlcjohn@fedoraproject.org> - 1.10.1-3
7d88021
- added ncid-makefiles.patch
7d88021
b63bc29
* Mon Jan 28 2019 John Chmielewski <jlcjohn@fedoraproject.org> - 1.10.1-2
b63bc29
- Removed obsolete Group tags
b63bc29
- created default server modem port and lockfile
b63bc29
- created the ncid-gateway package
b63bc29
- creates the ncid-mythtv package again
b63bc29
- changed mythtvosd to mythutil in ncid-mythtv
b63bc29
- updated Source0 URL
b63bc29
- New upstream release.
b63bc29
b63bc29
* Fri Dec 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-2
b63bc29
- New upstream release.
b63bc29
23b0670
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-9
23b0670
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
23b0670
089cfca
* Tue Apr 24 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.6-8
089cfca
- spec cleanup + attempt to fix FTBFS on rawhide
089cfca
Eric Sandeen 695eb1e
* Mon Feb 26 2018 Eric Sandeen <sandeen@redhat.com> - 1.6-7
Eric Sandeen 695eb1e
- BuildRequires: gcc
Eric Sandeen 695eb1e
be9f9cc
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-6
be9f9cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be9f9cc
f8c153e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-5
f8c153e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f8c153e
4fec295
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-4
4fec295
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4fec295
6e93981
* Thu Jul 13 2017 Petr Pisar <ppisar@redhat.com> - 1.6-3
6e93981
- perl dependency renamed to perl-interpreter
6e93981
  <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
6e93981
5bdc50f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
5bdc50f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5bdc50f
Eric Sandeen 95e7723
* Fri Nov 25 2016 Eric Sandeen <sandeen@redhat.com> 1.6-1
Eric Sandeen 95e7723
- New upstream release
Eric Sandeen 95e7723
Eric Sandeen 721f388
* Thu Apr 14 2016 Eric Sandeen <sandeen@redhat.com> 1.3-3
Eric Sandeen 721f388
- Fix up systemd service files
Eric Sandeen 721f388
Eric Sandeen 723dc14
* Thu Apr 14 2016 Eric Sandeen <sandeen@redhat.com> 1.3-2
Eric Sandeen 723dc14
- Tidy up specfile; match uptream more closely.
Eric Sandeen 723dc14
Eric Sandeen c1416d5
* Mon Apr 11 2016 Eric Sandeen <sandeen@redhat.com> 1.3-1
Eric Sandeen c1416d5
- New upstream version
Eric Sandeen c1416d5
e0eff46
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-10
e0eff46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e0eff46
1fdd3b2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-9
1fdd3b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1fdd3b2
a1a2d7e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-8
a1a2d7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a1a2d7e
596aef7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-7
596aef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
596aef7
e84c4ca
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-6
e84c4ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e84c4ca
090aaed
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.83-5
090aaed
- Perl 5.18 rebuild
090aaed
bd4deaa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-4
bd4deaa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bd4deaa
f43345c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-3
f43345c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f43345c
c790006
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-2
c790006
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c790006
Eric Sandeen 6bd5442
* Mon Oct 10 2011 Eric Sandeen <sandeen@redhat.com> 0.83-1
Eric Sandeen 6bd5442
- New upstream version
Eric Sandeen 6bd5442
Eric Sandeen 3879977
* Tue Mar 01 2011 Eric Sandeen <sandeen@redhat.com> 0.81-1
Eric Sandeen 3879977
- New upstream version
Eric Sandeen 3879977
2be2dd2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.80-2
2be2dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2be2dd2
Eric Sandeen 6ade7b3
* Tue Dec 21 2010 Eric Sandeen <sandeen@redhat.com> 0.80-1
Eric Sandeen 6ade7b3
- New upstream version
Eric Sandeen 6ade7b3
Jesse Keating 2bf0b4c
* Wed Sep 29 2010 jkeating - 0.79-2
Jesse Keating 2bf0b4c
- Rebuilt for gcc bug 634757
Jesse Keating 2bf0b4c
Eric Sandeen 1ca31aa
* Wed Sep 22 2010 Eric Sandeen <sandeen@redhat.com> 0.79-1
Eric Sandeen 1ca31aa
- New upstream version
Eric Sandeen 1ca31aa
e9f0885
* Mon Jul 12 2010 Eric Sandeen <sandeen@redhat.com> 0.78-2
e9f0885
- Add doc/LICENSE to -client subpackage docs
e9f0885
1d23407
* Mon May 17 2010 Eric Sandeen <sandeen@redhat.com> 0.78-1
1d23407
- New upstream version
1d23407
a99778b
* Sat Apr 17 2010 Eric Sandeen <sandeen@redhat.com> 0.77-1
a99778b
- New upstream version
a99778b
6370eaf
* Tue Feb 16 2010 Eric Sandeen <sandeen@redhat.com> 0.76-1
6370eaf
- New upstream version
6370eaf
ecbbfda
* Sat Nov 07 2009 Eric Sandeen <sandeen@redhat.com> 0.75-1
ecbbfda
- New upstream version
ecbbfda
- Make client subpackage noarch
ecbbfda
7ffec4c
* Fri Oct 09 2009 Eric Sandeen <sandeen@redhat.com> 0.74-3
7ffec4c
- Address new review items
7ffec4c
7ffec4c
* Fri Sep 04 2009 Eric Sandeen <sandeen@redhat.com> 0.74-2
7ffec4c
- Address new review items
7ffec4c
7ffec4c
* Wed Jul 29 2009 Eric Sandeen <sandeen@redhat.com> 0.74-1
7ffec4c
- New upstream release.
7ffec4c
7ffec4c
* Sun Mar 29 2009 Eric Sandeen <sandeen@redhat.com> 0.73-2
7ffec4c
- First Fedora build.
7ffec4c
7ffec4c
* Thu Mar 12 2009 John Chmielewski <jlc@users.sourceforge.net> 0.73-1
7ffec4c
- Initial build.